修改bug

master
ELF 4 years ago
parent e94b6418f1
commit 102e77267d

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

Loading…
Cancel
Save