WIN-2308041133\Administrator 2 ngày trước cách đây
mục cha
commit
11a087128f
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/api/controller/Education.php

+ 3 - 1
app/api/controller/Education.php

@@ -285,9 +285,11 @@ class Education
     public function ContractTemplatEnd(){
     public function ContractTemplatEnd(){
         try {
         try {
             $lst = (new UserContractRecordModel())->where("status",1)->where("end_time","<",time())->select();
             $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)){
             if(!empty($lst)){
                 $lst = $lst->toArray();
                 $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);
             @file_put_contents('quanju.txt', json_encode($lst) . "-到期合约列表\r\n", 8);