def place(self, pay_answer_id): api = pay_answer_data.data.get(pay_answer_keys.place) api["data"] = [ ("payAnswerId", (None, pay_answer_id)), ("customerId", (None, eve.user_id_two)), ("content", (None, "test")), ("telephone", (None, "13783783183")), ] res = file.post(api) if res: return res.get("ret")
def update(self, course_id): api = self.data.get(self.keys.update) api["url"] = api.get("url").format(course_id=course_id) file.post(api)
def complain(self, order_id): api = pay_answer_data.data.get(pay_answer_keys.complain) api["url"] = api.get("url").format(order_id=order_id) file.post(api)
def cert_edu(self): api = self.cert_data.data.get(keys.education) file.post(api)
def create(self): api = self.data.get(self.keys.create) res = file.post(api) if res: return res.get("ret")
def cert_career(self): api = self.cert_data.data.get(keys.career) file.post(api)
def cert_real_name(self): query = "DELETE FROM tbl_vw_certification_third_record WHERE realname = '周依依'" conn.do_delete(query) api = self.cert_data.data.get(keys.real_name) if file.post(api): return True
def replay(self): global reply_id api = answer_data.get(keys.reply) replyTo = ("replyTo", (None, answer_id)) api["data"].append(replyTo) return file.post(api)
def test_publish(self): global answer_id api = answer_data.get(keys.publish) res = file.post(api=api) if res: answer_id = res.get("ret")
def replay_next(self): if reply_id: api = answer_data.get(keys.reply) replyTo = ("replyTo", (None, reply_id)) api["data"].append(replyTo) return file.post(api)