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