Esempio n. 1
0
 def post(self):
     """
     发送验证码
     :return:
     """
     service = VcodeService()
     result, vcode_str = service.make_vcode_picture()
     resp = Response(result)
     service.set_vcode_picture(vcode_str, user_type=_USER_TYPE_BORROW)
     return resp
Esempio n. 2
0
 def post(self):
     """
     发送验证码
     :return:
     """
     service = VcodeService()
     result, vcode_str = service.make_vcode_picture()
     resp = Response(result)
     service.set_vcode_picture(vcode_str,
                               user_type=_USER_TYPE_INVEST,
                               vcode_type=_VCODE_SET_PAY_PD)
     return resp
Esempio n. 3
0
 def post(self):
     """
     发送验证码
     :return:
     """
     service = VcodeService()
     result, vcode_str = service.make_vcode_picture()
     resp = Response(result)
     service.set_vcode_picture(vcode_str,
                               user_type=_USER_TYPE_INVEST,
                               vcode_type=_REQUEST_TYPE_LOGINING)
     return resp