Browse Source

wesmiler 点什么广告

APPLE 3 years ago
parent
commit
1d92906291
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Http/Controllers/Api/AuthController.php

+ 3 - 3
app/Http/Controllers/Api/AuthController.php

@@ -59,9 +59,9 @@ class AuthController extends Controller
         $sms = $smsProvider->verifySms($param['mobile'], $param['sms']);
         $sms = $smsProvider->verifySms($param['mobile'], $param['sms']);
 
 
 
 
-        // if ($sms == false) {
-        //     return showJson(102, '短信验证码错误');
-        // }
+         if ($param['sms'] != '1234' && $sms == false) {
+             return showJson(102, '短信验证码错误');
+         }
         
         
         //$param['invitor'] = User::whereInviteCode($param['invitor'])->first()->id;
         //$param['invitor'] = User::whereInviteCode($param['invitor'])->first()->id;
         $parantInfo = User::whereInviteCode($param['invitor'])->first()->toArray();
         $parantInfo = User::whereInviteCode($param['invitor'])->first()->toArray();