rabin 2 years ago
parent
commit
0fd7a2f82f
1 changed files with 1 additions and 27 deletions
  1. 1 27
      service/agent/lib/Import.php

+ 1 - 27
service/agent/lib/Import.php

@@ -522,32 +522,6 @@ class Import
         }
     }
 
-    # 同步团队业绩
-    public function group_api()
-    {
-        $data = Dever::db('agent/member')->select();
-        if ($data) {
-            foreach ($data as $k => $v) {
-
-                $info = $this->db->fetch('select * from ims_ewei_shop_member where id =' . $v['id']);
-                if (!$info) {
-                    continue;
-                }
-                if (!$info['allcommission']) {
-                    continue;
-                }
-                $update = array();
-                $update['old_group_sell'] = $info['allcommission'];
-                $update['group_sell'] = $info['allcommission'];
-
-                $update['where_id'] = $v['id'];
-                Dever::db('agent/member')->update($update);
-                echo $v['id'] . '-' . $info['allcommission'];
-                echo "\r\n";
-            }
-        }
-    }
-
     # 导入创客名额
     public function chuangke_api()
     {
@@ -565,7 +539,7 @@ class Import
                 if (!$info['direct_num']) {
                     continue;
                 }
-                $direct_num = json_decode($info['direct_num'], true);
+                $direct_num = unserialize($info['direct_num']);
                 if (isset($direct_num[4]) && $direct_num[4]) {
                     $total = $direct_num[4];