Commit 9637d40a authored by hujun's avatar hujun

开盘排序

parent c5dc05fd
...@@ -22,15 +22,17 @@ class BSquareSort extends BaseModel ...@@ -22,15 +22,17 @@ class BSquareSort extends BaseModel
* @param $data * @param $data
* @param $id * @param $id
* @param array $where * @param array $where
* @return mixed * @return int|string
* @throws \think\Exception
* @throws \think\exception\PDOException
* User HuJun * User HuJun
* Date 19-5-7 下午5:54 * Date 19-5-8 上午10:03
*/ */
public function updateData($data, $id, $where = []) { public function updateData($data, $id, $where = []) {
if ($id > 0) { if ($id > 0) {
$where['id'] = $id; $where['id'] = $id;
} }
return $this->db_->where($where)->upate($data); return $this->db_->where($where)->update($data);
} }
/** /**
......
...@@ -633,7 +633,7 @@ Route::group('task', [ ...@@ -633,7 +633,7 @@ Route::group('task', [
'moveFollowUpList' => ['task/FollowUpTask/moveFollowUpList', ['method' => 'get']], 'moveFollowUpList' => ['task/FollowUpTask/moveFollowUpList', ['method' => 'get']],
'frostAgent' => ['task/FrostAgentTask/frostAgent', ['method' => 'get']], 'frostAgent' => ['task/FrostAgentTask/frostAgent', ['method' => 'get']],
'squareBackUp' => ['task/squareBackUp/readRedis', ['method' => 'get']], 'squareBackUp' => ['task/SquareTask/squareBackUp', ['method' => 'get']], //redis备份开盘排序
'updateActivityStatus' => ['task/UpdateActivityTask/updateActivityStatus', ['method' => 'get']], 'updateActivityStatus' => ['task/UpdateActivityTask/updateActivityStatus', ['method' => 'get']],
......
...@@ -23,14 +23,18 @@ class SquareTask ...@@ -23,14 +23,18 @@ class SquareTask
$sort_service = new SquareSortService(); $sort_service = new SquareSortService();
$look_num = $sort_service->getLookData(); //看盘数量 $look_num = $sort_service->getLookData(); //看盘数量
if ($look_num) {
foreach ($look_num as $k=>$v) { foreach ($look_num as $k=>$v) {
$square_id[] = $k; $square_id[] = $k;
} }
}
$comment = $sort_service->getCommentData();//最后评论时间 $comment = $sort_service->getCommentData();//最后评论时间
if ($comment) {
foreach ($comment as $k=>$v) { foreach ($comment as $k=>$v) {
$square_id[] = $k; $square_id[] = $k;
} }
}
if (empty($square_id)) { if (empty($square_id)) {
return ; return ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment