Kirin 3 years ago
parent
commit
77f5e77ee1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/user/UserController.php

+ 1 - 1
app/api/controller/user/UserController.php

@@ -610,7 +610,7 @@ class UserController
     public function spread(Request $request)
     {
         $puid = $request->post('puid/d', 0);
-        $phone = $request->post('phone', 0);
+        $phone = $request->post('phone', '');
         if (!$puid) $puid = User::where('phone', $phone)->value('uid');
         if (!User::setSpread($puid, $request->uid())) {
             return app('json')->fail(UserSpread::getErrorInfo());