WIN-2308041133\Administrator 1 روز پیش
والد
کامیت
74cae0b6f6
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      app/api/controller/Pub.php

+ 7 - 1
app/api/controller/Pub.php

@@ -19,6 +19,7 @@ use app\model\api\UserClock;
 use think\db\exception\DataNotFoundException;
 use think\db\exception\DbException;
 use think\db\exception\ModelNotFoundException;
+use think\facade\Log;
 use think\facade\View;
 use app\BaseController;
 use app\Request;
@@ -278,7 +279,12 @@ class Pub extends BaseController
         $post["pageSize"] = $post["pageSize"] > 50 ? 50 : (int)$post["pageSize"];
         $post["page"] = $post["page"] <= 0 ? 1 : (int)$post["page"];
         $post["status"] = 1;
-        @file_put_contents('quanju.txt', json_encode($post). "-搜索条件\r\n", 8);
+
+        Log::info('搜索条件:' . json_encode($post, JSON_UNESCAPED_UNICODE));
+        $logPath = app()->getRuntimePath() . 'debug.txt';
+        @file_put_contents($logPath, date('Y-m-d H:i:s') . ' | ' . json_encode($post, JSON_UNESCAPED_UNICODE) . "\r\n", FILE_APPEND);
+        return app('json')->fail($post);
+
         $data = (new UserModel)->getGoodApiWorkerList($post);
         foreach ($data['list'] as &$item) {
             $infoAuditDb = new InfoAudit();