|
|
|
@ -41,7 +41,7 @@ class MarketService
|
|
|
|
|
$map['id'] = $promote['id'];
|
|
|
|
|
$map['admin_id'] = $fromId;
|
|
|
|
|
M('promote', 'tab_')->where($map)->save(['admin_id' => $toId]);
|
|
|
|
|
M('promote', 'tab_')->where(['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']])->save(['admin_id' => $promote['admin_id']]);
|
|
|
|
|
M('promote', 'tab_')->where(['chain' => ['like', $promote['chain'] . $promote['id'] . '/%']])->save(['admin_id' => $toId]);
|
|
|
|
|
|
|
|
|
|
$authGroup = M('auth_group', 'sys_')->where(['title'=>'市场总监'])->find();
|
|
|
|
|
$dataPresident = explode(',', $authGroup['data_president']);
|
|
|
|
|