|
@@ -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];
|
|
|
|