作者 王智

文档修改

@@ -196,16 +196,6 @@ class Common extends Api @@ -196,16 +196,6 @@ class Common extends Api
196 } 196 }
197 } 197 }
198 198
199 - //活动定时任务  
200 - public function Controb()  
201 - {  
202 - Db::name('huodong_money')->where('id', 'NEQ', 0)->update(  
203 - [  
204 - 'tixian_money' => 200,  
205 - 'type' => 0  
206 - ]  
207 - );  
208 - }  
209 199
210 //拉取新订单 200 //拉取新订单
211 public function PullOrder() 201 public function PullOrder()
@@ -357,7 +347,16 @@ class Common extends Api @@ -357,7 +347,16 @@ class Common extends Api
357 $Info = Db::name('area')->where('pid', $Pid)->select(); 347 $Info = Db::name('area')->where('pid', $Pid)->select();
358 $this->success('成功', $Info); 348 $this->success('成功', $Info);
359 } 349 }
360 - 350 + //活动定时任务
  351 + public function Controb()
  352 + {
  353 + Db::name('huodong_money')->where('id', 'NEQ', 0)->update(
  354 + [
  355 + 'tixian_money' => 200,
  356 + 'type' => 0
  357 + ]
  358 + );
  359 + }
361 360
362 //定时任务 361 //定时任务
363 public function OverTime() 362 public function OverTime()
@@ -892,6 +892,8 @@ class Update extends Api @@ -892,6 +892,8 @@ class Update extends Api
892 } 892 }
893 $UserArray = Db::name('user')->field('nickname')->order('id desc')->page(1, 50)->select(); 893 $UserArray = Db::name('user')->field('nickname')->order('id desc')->page(1, 50)->select();
894 $NickNameArray = array_column($UserArray, 'nickname'); 894 $NickNameArray = array_column($UserArray, 'nickname');
  895 + dump($NickNameArray);
  896 + die;
895 $rand_list = array_rand($NickNameArray, 30); 897 $rand_list = array_rand($NickNameArray, 30);
896 foreach ($rand_list as $key) { 898 foreach ($rand_list as $key) {
897 $RankArray[] = $NickNameArray[$key]; 899 $RankArray[] = $NickNameArray[$key];