Browse Source

fix bindPhone

laowu 1 day ago
parent
commit
ab97d36376
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Game/LoginController.php

+ 1 - 1
app/Http/Controllers/Game/LoginController.php

@@ -177,7 +177,7 @@ class LoginController extends Controller
 
 
         $Phone = $this->checkPhone($PhoneNum, $RegisterLocation, $request);
         $Phone = $this->checkPhone($PhoneNum, $RegisterLocation, $request);
         //有错误返回
         //有错误返回
-        if (is_array($Phone)){
+        if (is_array($Phone) || is_object($Phone)){
             Log::info(json_encode($Phone),[$Phone,$PhoneCode]);
             Log::info(json_encode($Phone),[$Phone,$PhoneCode]);
             return $Phone;
             return $Phone;
         }
         }