master
elf 2 years ago
parent a0ccf1fa06
commit 7c0cc25397

@ -1351,10 +1351,10 @@ class TimingController extends AdminController {
public function shiftPlayers() { public function shiftPlayers() {
$items = [ $items = [
'lingtouyang' => 'cmyibu', // 'lingtouyang' => 'cmyibu',
'lingtouyan' => 'cmbabu', // 'lingtouyan' => 'cmbabu',
'18054742361' => 'yibuqizu', '18054742361' => 'yibuqizu',
'17828125172' => 'yibubazu', /* '17828125172' => 'yibubazu',
'19511891774' => 'yibuyizu', '19511891774' => 'yibuyizu',
'15181732144' => 'yibuerzu', '15181732144' => 'yibuerzu',
'15202815645' => 'yibusanzu', '15202815645' => 'yibusanzu',
@ -1367,12 +1367,13 @@ class TimingController extends AdminController {
'baibai' => 'baibai2', 'baibai' => 'baibai2',
'15181732144' => 'yibuerzu', '15181732144' => 'yibuerzu',
'19865000474' => 'yibuqizu', '19865000474' => 'yibuqizu',
'17606977448' => 'yibuwuzu', '17606977448' => 'yibuwuzu', */
]; ];
foreach ($items as $fromPromoteAccount => $toPromoteAccount) { foreach ($items as $fromPromoteAccount => $toPromoteAccount) {
$toPromote = M('promote','tab_')->field(['id', 'account'])->where(['account'=> $toPromoteAccount])->find(); $toPromote = M('promote','tab_')->field(['id', 'account'])->where(['account'=> $toPromoteAccount])->find();
$users = M("user","tab_")->where("promote_account='" . $fromPromoteAccount . "'")->select(); $users = M("user","tab_")->where("promote_account='" . $fromPromoteAccount . "'")->select();
var_dump($users);
foreach ($users as $user) { foreach ($users as $user) {
$params = [ $params = [
'promote_id_to' => $toPromote['id'], 'promote_id_to' => $toPromote['id'],

Loading…
Cancel
Save