chuweiqiang 1 vuosi sitten
vanhempi
commit
57e53b52cd

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/common/service/CheckPower.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common/service/CheckPower.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/runtime/log/single.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single.log" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/runtime/log/single_sql.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_sql.log" afterDir="false" />
     </list>
@@ -561,7 +561,7 @@
       <workItem from="1709685213840" duration="22391000" />
       <workItem from="1709771488709" duration="25453000" />
       <workItem from="1709858015380" duration="7979000" />
-      <workItem from="1710117055965" duration="3771000" />
+      <workItem from="1710117055965" duration="7341000" />
     </task>
     <servers />
   </component>

+ 9 - 4
application/common/service/CheckPower.php

@@ -60,10 +60,15 @@ class CheckPower
               //  if($cate != 2) return 0;
                 break;
             case 'article':
-                $item = ArticleItem::where('id',$second_id)->where('status',1)->where('is_deleted',0)->value('id');
-                if(!$item) return 0;
-                $parent = ArticleIntro::where('id',$first_id)->where('status',1)->where('is_deleted',0)->find();
-                if(!$parent) return 0;
+                if($second_id != 0){
+                    $item = ArticleItem::where('id',$second_id)->where('status',1)->where('is_deleted',0)->value('id');
+                    if(!$item) return 0;
+                }
+                if($first_id != 0) {
+                    $parent = ArticleIntro::where('id', $first_id)->where('status', 1)->where('is_deleted', 0)->find();
+                    if (!$parent) return 0;
+                }
+
                 if($parent->type == 1)
                 {
                     $cate = ArticleCate::where('id','in',[$parent->first_classify,$parent->second_classify])

+ 4 - 0
runtime/cache/ce/2e52988e6560dd3cd7c5406ca3ac3b.php

@@ -0,0 +1,4 @@
+<?php
+//000000000360
+ exit();?>
+6R4R

+ 81 - 0
runtime/log/single.log

@@ -110928,3 +110928,84 @@
 [ info ] [ PARAM ] array (
   'module' => 'datumIntro',
 )
+---------------------------------------------------------------
+
+[2024-03-11T09:43:28+08:00] 127.0.0.1 GET gaoyx.com/admin/login.html
+[运行时间:0.939381s] [吞吐率:1.06req/s] [内存消耗:6,203.93kb] [文件加载:153]
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/zh-cn.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/en-us.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\thinkphp\lang\zh-cn.php
+[ info ] [ ROUTE ] array (
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'SECKEY_ABVK=fAaVjmDAUIbBW80YWSY4N906b+68fLYcGDNUXNxwWRc%3D; BMAP_SECKEY=YjbgeXIXBnnmoqY6X9IEgH8OhUu0xuCzxnb07qcQe5Iy55V1CR24X5IJkNtD_I7KgJfHDk2LsZIO0IcnNiEX2Ro8_dVmPrwyYqGvNmivwfjpxXzB3AQYXEyEngL6AQ7PrnFct6PAL3Z6J81wVxO4zLdpWkXHd5dwjQO9e8fCuKhrZ4LBPrMu_hdSZlBPSgh8; PHPSESSID=o92nbjosjjpirsvd4hlsghuf50; SECKEY_ABVK=fAaVjmDAUIbBW80YWSY4NwkJ+KYMdxVx8SDQs0j60gs%3D; BMAP_SECKEY=YjbgeXIXBnnmoqY6X9IEgP5nm1PgcQZjdpDLQ2BreakMBQpbuFPcQ9Z4z3_nknA47r3qXf5KvTq22UXQZccqxogzEayEkQ_arz2EUxRZzFHHq8lOd78ELyuFEyBrjIBkcVOr49M6VaScKibiQItb9_AAnsD3UBE8X77bca1Ilt-RlIPqOE5s_b7Y8RUH8r1Pfn0PybJsE-xSlfPNm0a8uQ',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'sec-fetch-dest' => 'document',
+  'sec-fetch-user' => '?1',
+  'sec-fetch-mode' => 'navigate',
+  'sec-fetch-site' => 'same-origin',
+  'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
+  'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
+  'upgrade-insecure-requests' => '1',
+  'sec-ch-ua-platform' => '"Windows"',
+  'sec-ch-ua-mobile' => '?0',
+  'sec-ch-ua' => '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
+  'connection' => 'keep-alive',
+  'host' => 'gaoyx.com',
+  'content-length' => '',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ VIEW ] D:\project\gyx\gaoyixia\application\admin\view\login\index.html [ array (
+  0 => 'app',
+  1 => 'request',
+  2 => 'csrf_state',
+  3 => 'csrf_message',
+  4 => 'title',
+  5 => 'captcha_type',
+  6 => 'captcha_token',
+  7 => 'devmode',
+) ]
+[ info ] [ DB ] INIT mysql
+---------------------------------------------------------------
+
+[2024-03-11T09:43:28+08:00] 127.0.0.1 POST gaoyx.com/admin/login/captcha
+[运行时间:0.073707s] [吞吐率:13.57req/s] [内存消耗:3,801.54kb] [文件加载:143]
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/zh-cn.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/en-us.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\thinkphp\lang\zh-cn.php
+[ info ] [ ROUTE ] array (
+)
+[ info ] [ HEADER ] array (
+  'cookie' => 'SECKEY_ABVK=fAaVjmDAUIbBW80YWSY4N906b+68fLYcGDNUXNxwWRc%3D; BMAP_SECKEY=YjbgeXIXBnnmoqY6X9IEgH8OhUu0xuCzxnb07qcQe5Iy55V1CR24X5IJkNtD_I7KgJfHDk2LsZIO0IcnNiEX2Ro8_dVmPrwyYqGvNmivwfjpxXzB3AQYXEyEngL6AQ7PrnFct6PAL3Z6J81wVxO4zLdpWkXHd5dwjQO9e8fCuKhrZ4LBPrMu_hdSZlBPSgh8; PHPSESSID=o92nbjosjjpirsvd4hlsghuf50; SECKEY_ABVK=fAaVjmDAUIbBW80YWSY4NwkJ+KYMdxVx8SDQs0j60gs%3D; BMAP_SECKEY=YjbgeXIXBnnmoqY6X9IEgP5nm1PgcQZjdpDLQ2BreakMBQpbuFPcQ9Z4z3_nknA47r3qXf5KvTq22UXQZccqxogzEayEkQ_arz2EUxRZzFHHq8lOd78ELyuFEyBrjIBkcVOr49M6VaScKibiQItb9_AAnsD3UBE8X77bca1Ilt-RlIPqOE5s_b7Y8RUH8r1Pfn0PybJsE-xSlfPNm0a8uQ',
+  'accept-language' => 'zh-CN,zh;q=0.9',
+  'accept-encoding' => 'gzip, deflate, br',
+  'referer' => 'https://gaoyx.com/admin/login.html',
+  'sec-fetch-dest' => 'empty',
+  'sec-fetch-mode' => 'cors',
+  'sec-fetch-site' => 'same-origin',
+  'origin' => 'https://gaoyx.com',
+  'sec-ch-ua-platform' => '"Windows"',
+  'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
+  'sec-ch-ua-mobile' => '?0',
+  'x-requested-with' => 'XMLHttpRequest',
+  'content-type' => 'application/x-www-form-urlencoded; charset=UTF-8',
+  'accept' => '*/*',
+  'sec-ch-ua' => '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
+  'content-length' => '43',
+  'connection' => 'keep-alive',
+  'host' => 'gaoyx.com',
+)
+[ info ] [ PARAM ] array (
+  'type' => 'login_captcha',
+  'token' => '202403115227369350',
+)
+---------------------------------------------------------------
+
+[2024-03-11T09:43:29+08:00] 127.0.0.1 GET gaoyx.com/upload/decb0fe26fa3f486/b3f6521bf29403c8.png
+[运行时间:0.039236s] [吞吐率:25.49req/s] [内存消耗:2,359.98kb] [文件加载:130]
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/zh-cn.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\vendor\zoujingli\think-library\src/lang/en-us.php
+[ info ] [ LANG ] D:\project\gyx\gaoyixia\thinkphp\lang\zh-cn.php

+ 6 - 0
runtime/log/single_sql.log

@@ -29942,3 +29942,9 @@ JPush\\Exceptions\\APIRequestException -- [1011]: cannot find user by this audie
 [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_forum_reply` WHERE  `forum_id` = 60  AND `is_deleted` = 0 [ RunTime:0.063815s ]
 [ sql ] [ SQL ] SELECT * FROM `dd_user_forum` WHERE  `id` = 60 LIMIT 1 [ RunTime:0.054462s ]
 [ sql ] [ SQL ] SELECT * FROM `dd_activity` WHERE  `id` = 20 LIMIT 1 [ RunTime:0.034350s ]
+---------------------------------------------------------------
+
+[2024-03-11T09:43:28+08:00] 127.0.0.1 GET gaoyx.com/admin/login.html
+[ sql ] [ DB ] CONNECT:[ UseTime:0.081526s ] mysql:host=182.40.104.187;port=3306;dbname=gaoyixia_hdlkeji;charset=utf8mb4
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_system_config` [ RunTime:0.047681s ]
+[ sql ] [ SQL ] SELECT `name`,`value` FROM `dd_system_config` [ RunTime:0.696855s ]