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