chuweiqiang 1 year ago
parent
commit
ca9e09999f
4 changed files with 41 additions and 3 deletions
  1. 3 2
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Mall.php
  3. 24 0
      runtime/log/single.log
  4. 13 0
      runtime/log/single_sql.log

+ 3 - 2
.idea/workspace.xml

@@ -2,8 +2,9 @@
 <project version="4">
   <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/Mall.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Mall.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>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -504,7 +505,7 @@
       <workItem from="1703118159058" duration="16101000" />
       <workItem from="1703204881450" duration="14875000" />
       <workItem from="1703465059878" duration="246000" />
-      <workItem from="1703466626395" duration="1649000" />
+      <workItem from="1703466626395" duration="1665000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/api/controller/Mall.php

@@ -202,7 +202,7 @@ class Mall extends Base
             //unset($v['item_list']);
         }
         $total_num =  StoreGoods::where($sel_where)->count();
-        $this->success('ok',['list'=>$list,'isShape'=>input('isShape',true),'class'=>$class_name,'total_count'=>$total_num,'page_num'=>$this->page_num]);
+        $this->success('ok',['list'=>$list,'isShape'=>input('isShape',true),'class_name'=>$class_name,'total_count'=>$total_num,'page_num'=>$this->page_num]);
 
     }
 

+ 24 - 0
runtime/log/single.log

@@ -2893,3 +2893,27 @@
   'third_classify' => '33',
 )
 [ info ] [ DB ] INIT mysql
+---------------------------------------------------------------
+
+[2023-12-25T14:05:56+08:00] 127.0.0.1 POST gaoyx.com/api/Mall/getGoodsList?third_classify=32
+[运行时间:2.322189s] [吞吐率:0.43req/s] [内存消耗:5,964.43kb] [文件加载:166]
+[ 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 (
+  'content-length' => '171',
+  'content-type' => 'multipart/form-data; boundary=--------------------------262491717188367307912554',
+  'host' => 'gaoyx.com',
+  'connection' => 'keep-alive',
+  'accept-encoding' => 'gzip, deflate, br',
+  'accept' => '*/*',
+  'authorization' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjQ5NSwiaXNzIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiYXVkIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiaWF0IjoxNzAyODg3NTM0LCJuYmYiOjE3MDI4ODc1MzQsImV4cCI6MTcxNzI4NzUzNCwiZmFjaWxpdHlfY29kZSI6ImRtbDJiMVl5TVRFNFFUTXhNVEk9IiwibG9naW5fdHlwZSI6IjEifQ.s1LpKxtJOv83yfv-snXAOgVkHb6RyK6krOh6idIbj-A',
+  'cache-control' => 'no-cache',
+  'user-agent' => 'PostmanRuntime-ApipostRuntime/1.1.0',
+)
+[ info ] [ PARAM ] array (
+  'third_classify' => '33',
+)
+[ info ] [ DB ] INIT mysql

+ 13 - 0
runtime/log/single_sql.log

@@ -737,3 +737,16 @@
 [ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_goods` [ RunTime:0.104571s ]
 [ sql ] [ SQL ] SELECT `id`,`name`,`label`,`sale_num`,`cover`,`specs` FROM `dd_store_goods` WHERE  `status` = 1  AND `is_deleted` = 0  AND `third_classify` = 32 ORDER BY `sort` DESC,`id` ASC LIMIT 0,20 [ RunTime:0.105318s ]
 [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_goods` WHERE  `status` = 1  AND `is_deleted` = 0  AND `third_classify` = 32 [ RunTime:0.101174s ]
+---------------------------------------------------------------
+
+[2023-12-25T14:05:56+08:00] 127.0.0.1 POST gaoyx.com/api/Mall/getGoodsList?third_classify=32
+[ sql ] [ DB ] CONNECT:[ UseTime:0.163657s ] mysql:host=120.79.86.50;port=3306;dbname=gaoyixia_hdlkeji;charset=utf8mb4
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_system_config` [ RunTime:0.108380s ]
+[ sql ] [ SQL ] SELECT `name`,`value` FROM `dd_system_config` [ RunTime:0.997169s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_member` [ RunTime:0.106603s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 495 LIMIT 1 [ RunTime:0.105232s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_goods_cate` [ RunTime:0.106769s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_goods_cate` WHERE  `id` = 32 LIMIT 1 [ RunTime:0.107927s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_goods` [ RunTime:0.109621s ]
+[ sql ] [ SQL ] SELECT `id`,`name`,`label`,`sale_num`,`cover`,`specs` FROM `dd_store_goods` WHERE  `status` = 1  AND `is_deleted` = 0  AND `third_classify` = 32 ORDER BY `sort` DESC,`id` ASC LIMIT 0,20 [ RunTime:0.109506s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_goods` WHERE  `status` = 1  AND `is_deleted` = 0  AND `third_classify` = 32 [ RunTime:0.115093s ]