Example #1
0
 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")
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 def cert_edu(self):
     api = self.cert_data.data.get(keys.education)
     file.post(api)
Example #5
0
 def create(self):
     api = self.data.get(self.keys.create)
     res = file.post(api)
     if res:
         return res.get("ret")
Example #6
0
 def cert_career(self):
     api = self.cert_data.data.get(keys.career)
     file.post(api)
Example #7
0
 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
Example #8
0
 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)
Example #9
0
 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")
Example #10
0
 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)