|
@@ -778,14 +778,19 @@ class v2authCodeView(TemplateView):
|
|
|
res = aliSms.send_code_sms(phone=phone, code=identifyingCode, sign_name=sign_ms,
|
|
|
temp_msg='SMS_151600991')
|
|
|
print(res)
|
|
|
- if res["Code"] == "OK":
|
|
|
+ code = res["Code"]
|
|
|
+ if code == "OK":
|
|
|
if reds.set_data(key=reds_key, val=identifyingCode, expire=300) is not True:
|
|
|
# if reds.set_data(key=phone + '_identifyingCode', val=identifyingCode, expire=60) is not True:
|
|
|
|
|
|
return response.json(10, '生成缓存系统错误')
|
|
|
return response.json(0)
|
|
|
else:
|
|
|
- return response.json(10, res["Message"])
|
|
|
+ msg = res["Message"]
|
|
|
+ if code == "isv.MOBILE_NUMBER_ILLEGAL":
|
|
|
+ if response.lang == "cn":
|
|
|
+ msg = phone+"非法手机"
|
|
|
+ return response.json(10,msg)
|
|
|
|
|
|
def phoneCodeV2(self, country_code, phone, response, sign_name):
|
|
|
dataValid = DataValid()
|