作者 王智

文档修改

... ... @@ -196,16 +196,6 @@ class Common extends Api
}
}
//活动定时任务
public function Controb()
{
Db::name('huodong_money')->where('id', 'NEQ', 0)->update(
[
'tixian_money' => 200,
'type' => 0
]
);
}
//拉取新订单
public function PullOrder()
... ... @@ -357,7 +347,16 @@ class Common extends Api
$Info = Db::name('area')->where('pid', $Pid)->select();
$this->success('成功', $Info);
}
//活动定时任务
public function Controb()
{
Db::name('huodong_money')->where('id', 'NEQ', 0)->update(
[
'tixian_money' => 200,
'type' => 0
]
);
}
//定时任务
public function OverTime()
... ...
... ... @@ -892,6 +892,8 @@ class Update extends Api
}
$UserArray = Db::name('user')->field('nickname')->order('id desc')->page(1, 50)->select();
$NickNameArray = array_column($UserArray, 'nickname');
dump($NickNameArray);
die;
$rand_list = array_rand($NickNameArray, 30);
foreach ($rand_list as $key) {
$RankArray[] = $NickNameArray[$key];
... ...