예제 #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")
예제 #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)
예제 #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)
예제 #4
0
파일: cert.py 프로젝트: Fireln/jishulinkapi
 def cert_edu(self):
     api = self.cert_data.data.get(keys.education)
     file.post(api)
예제 #5
0
 def create(self):
     api = self.data.get(self.keys.create)
     res = file.post(api)
     if res:
         return res.get("ret")
예제 #6
0
파일: cert.py 프로젝트: Fireln/jishulinkapi
 def cert_career(self):
     api = self.cert_data.data.get(keys.career)
     file.post(api)
예제 #7
0
파일: cert.py 프로젝트: Fireln/jishulinkapi
 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
예제 #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)
예제 #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")
예제 #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)