This commit is contained in:
mkm 2023-08-16 13:32:01 +08:00
parent 389847b078
commit 8d56c24155
2 changed files with 7 additions and 5 deletions

View File

@ -53,9 +53,9 @@ class AccountLogLists extends BaseApiDataLists
// 变动时间 // 变动时间
if (!empty($this->params['time'])) { if (!empty($this->params['time'])) {
$date = strtotime($this->params['time']); $date = strtotime($this->params['time']);
$startTime = $date - 3600; // 获取该日期零点的时间戳 $startTime = $date; // 获取该日期零点的时间戳
$endTime = $date + 86400; // 获取该日期24小时后的时间戳 $endTime = $date + 86399; // 获取该日期24小时后的时间戳
$where[] = ['create_time', 'between time', [$startTime, $endTime]]; $where[] = ['create_time', 'between', [$startTime, $endTime]];
} }
return $where; return $where;
} }
@ -113,9 +113,9 @@ class AccountLogLists extends BaseApiDataLists
$date = strtotime($this->params['time']); $date = strtotime($this->params['time']);
$startTime = $date; // 获取该日期零点的时间戳 $startTime = $date; // 获取该日期零点的时间戳
$endTime = $date + 86399; // 获取该日期24小时后的时间戳 $endTime = $date + 86399; // 获取该日期24小时后的时间戳
$where[] = ['create_time', 'between time', [$startTime, $endTime]]; $where[] = ['create_time', 'between', [$startTime, $endTime]];
}else{ }else{
$where[] = ['create_time', 'between time', [strtotime(date('Y-m-d')), strtotime(date('Y-m-d'))+86366]]; $where[] = ['create_time', 'between', [strtotime(date('Y-m-d')), strtotime(date('Y-m-d'))+86366]];
} }
$lists = UserAccountLog::field($field) $lists = UserAccountLog::field($field)
->where($where) ->where($where)

View File

@ -76,6 +76,8 @@ class TaskInformationJob
$name = '片区交易'; $name = '片区交易';
if ($json['status'] == 200) { if ($json['status'] == 200) {
$arr['total_price'] = $json['data']['total_price']; $arr['total_price'] = $json['data']['total_price'];
//基础金额*(每日基户数*天数)//且户数小于公司总户数
// $day=date('d',time())>;
if ($json['data']['total_price'] > 58*5) { if ($json['data']['total_price'] > 58*5) {
$arr['status'] = 1; $arr['status'] = 1;
$name = '片区交易'; $name = '片区交易';