|
@@ -522,6 +522,32 @@ 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'];
|
|
|
+ echo "\r\n";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function chuangke_api()
|
|
|
{
|