|
|
@@ -285,9 +285,11 @@ class Education
|
|
|
public function ContractTemplatEnd(){
|
|
|
try {
|
|
|
$lst = (new UserContractRecordModel())->where("status",1)->where("end_time","<",time())->select();
|
|
|
+ $sql = (new UserContractRecordModel())->getLastSql();
|
|
|
+ @file_put_contents('quanju.txt', $sql . "-sql语句\r\n", 8);
|
|
|
if(!empty($lst)){
|
|
|
$lst = $lst->toArray();
|
|
|
- Log::info('搜索条件:' . json_encode($lst, JSON_UNESCAPED_UNICODE));
|
|
|
+ @file_put_contents('quanju.txt', '搜索条件:' . json_encode($lst, JSON_UNESCAPED_UNICODE));
|
|
|
}
|
|
|
@file_put_contents('quanju.txt', json_encode($lst) . "-到期合约列表\r\n", 8);
|
|
|
|