|
@@ -88,10 +88,13 @@ func (o *OneClickInfo) GetPhoneByToken() (map[string]interface{}, error) {
|
|
|
_result, _err := client.GetPhoneWithTokenWithOptions(getPhoneWithTokenRequest, runtime)
|
|
|
log.Println("GetPhoneWithTokenWithOptions _result:", _result)
|
|
|
if _err != nil {
|
|
|
- log.Println("GetPhoneWithTokenWithOptions:_err", _err, o.SpToken)
|
|
|
+ log.Println("GetPhoneWithTokenWithOptions:_err", _err)
|
|
|
if _result.Body != nil {
|
|
|
log.Println("GetPhoneWithTokenWithOptions _result", _result.Body.Code, _result.Body.Message)
|
|
|
}
|
|
|
+ if strings.Contains(_err.Error(), "GET_MOBILE_FAILED") {
|
|
|
+ return fmt.Errorf("输入手机号码和当前流量卡运营商归属不一致"), ""
|
|
|
+ }
|
|
|
return fmt.Errorf("无法识别网络环境,请使用验证码登录"), ""
|
|
|
}
|
|
|
if *_result.Body.Code == "OK" {
|