dever 6 лет назад
Родитель
Сommit
5ce5540180
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      src/Applet.php

+ 5 - 3
src/Applet.php

@@ -180,6 +180,10 @@ class Applet extends Base
             $info = Dever::load('passport/user-one', $uid);
             $result['mobile'] = $mobile;
             if ($info) {
+
+                if (!$info['mobile']) {
+                    Dever::score($uid, 'bind_mobile', '绑定手机号');
+                }
                 $update['set_mobile'] = $mobile;
                 $update['set_bind'] = 1;
                 $update['where_id'] = $uid;
@@ -195,9 +199,7 @@ class Applet extends Base
             }
         }
 
-        if (!$info['mobile']) {
-            Dever::score($uid, 'bind_mobile', '绑定手机号');
-        }
+        
 
         $result['vid'] = $vid;
         $result['uid'] = $uid;