Explorar el Código

wesmiler ECY 画画交易平台

APPLE hace 3 años
padre
commit
69682e4684
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/cmgadm/controller/user/User.php

+ 1 - 1
application/cmgadm/controller/user/User.php

@@ -641,7 +641,7 @@ class User extends Backend
                 'mobile' => $params['mobile'],
                 'updatetime' => time(),
             ];
-            if ($params['referee']) {
+            if ($params['referee'] && $params['referee'] != $row['referee_name']) {
                 $referee = $this->model->where(['username|mobile' => $params['referee'], 'status' => 1])->find();
                 if ($referee) {
                     $data['refereeid'] = $referee['id'];