Explorar el Código

完善分享商品对新注册用户

sunxbiao hace 1 año
padre
commit
28ef960b1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/controller/api/Auth.php

+ 1 - 1
app/controller/api/Auth.php

@@ -1478,7 +1478,7 @@ class Auth extends BaseController
1478 1478
         $user = $repository->accountByUser($data['phone']);
1479 1479
         if (!$user){
1480 1480
             $data['spread_uid'] = 0;
1481
-            if (!intval($data['share_id'])) {
1481
+            if (intval($data['share_id'])) {
1482 1482
                 $spread_uid = Db::name('product_share')->where('id', $data['share_id'])->value('uid');
1483 1483
                 $data['spread_uid'] = $spread_uid;
1484 1484
             }