chuweiqiang 1 year ago
parent
commit
7875e84317

+ 1 - 3
.idea/workspace.xml

@@ -4,9 +4,7 @@
     <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/Supplier.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Supplier.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_error.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_error.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" />
@@ -588,7 +586,7 @@
       <workItem from="1712450287469" duration="13439000" />
       <workItem from="1712536048835" duration="5847000" />
       <workItem from="1712640867555" duration="9188000" />
-      <workItem from="1712709070415" duration="16380000" />
+      <workItem from="1712709070415" duration="17010000" />
     </task>
     <servers />
   </component>

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

@@ -856,7 +856,7 @@ class Supplier extends Base
             ->select()->toArray();
         foreach ($list as &$v) {
             $v['cover_arr'] = explode('|',$v['cover']);
-            $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,$this->request->controller());
+            $v['is_normal'] = CheckPower::checkModulesPower($v['goods_id'],0,'supplier_goods');
             $v['transmit_num'] = numTransform($v['transmit_num']);
             $v['read_num']    = numTransform($v['read_num']);
             $v['comment_num'] = SupplierComment::getCommentNum($v['goods_id']);

+ 23 - 0
runtime/log/single.log

@@ -49029,3 +49029,26 @@
 [ info ] [ PARAM ] array (
 )
 [ info ] [ DB ] INIT mysql
+---------------------------------------------------------------
+
+[2024-04-10T15:21:11+08:00] 127.0.0.1 POST gaoyx.com/api/Supplier/getSupplierGoodsTrack
+[运行时间:1.837547s] [吞吐率:0.54req/s] [内存消耗:1,970.73kb] [文件加载:167]
+[ 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' => '0',
+  'host' => 'gaoyx.com',
+  'connection' => 'keep-alive',
+  'accept-encoding' => 'gzip, deflate, br',
+  'accept' => '*/*',
+  'authorization' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjQ3OSwiaXNzIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiYXVkIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiaWF0IjoxNzEyMTA2MjQ1LCJuYmYiOjE3MTIxMDYyNDUsImV4cCI6MTcyNjUwNjI0NSwiZmFjaWxpdHlfY29kZSI6ImRtbDJiMVl5TVRFNFFUTXhNVEk9IiwibG9naW5fdHlwZSI6IjEifQ.O0Eims7slBSjm31DmoMgD-thwRq6Ii0JP-csY3E7PUs',
+  'cache-control' => 'no-cache',
+  'user-agent' => 'PostmanRuntime-ApipostRuntime/1.1.0',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ DB ] INIT mysql

+ 20 - 0
runtime/log/single_sql.log

@@ -56324,3 +56324,23 @@ AUTOSAR服务
 [ sql ] [ SQL ] SELECT * FROM `dd_supplier` WHERE  `id` = 48  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.061630s ]
 [ sql ] [ SQL ] SELECT * FROM `dd_supplier` WHERE  `id` = 54  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.051483s ]
 [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_user_track` `t` LEFT JOIN `dd_supplier_goods` `i` ON `t`.`first_id`=`i`.`id` WHERE  `t`.`user_id` = 479  AND `t`.`type` = 10 [ RunTime:0.039576s ]
+---------------------------------------------------------------
+
+[2024-04-10T15:21:11+08:00] 127.0.0.1 POST gaoyx.com/api/Supplier/getSupplierGoodsTrack
+[ sql ] [ DB ] CONNECT:[ UseTime:0.077814s ] mysql:host=182.40.104.187;port=3306;dbname=gaoyixia_hdlkeji;charset=utf8mb4
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_member` [ RunTime:0.050059s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 479 LIMIT 1 [ RunTime:0.072091s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_system_config` [ RunTime:0.047889s ]
+[ sql ] [ SQL ] SELECT `name`,`value` FROM `dd_system_config` [ RunTime:0.748829s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 479 LIMIT 1 [ RunTime:0.046896s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_user_track` [ RunTime:0.066130s ]
+[ sql ] [ SQL ] SELECT `t`.`id`,`t`.`update_int`,t.first_id goods_id,`i`.`read_num`,`i`.`name`,`i`.`cover`,`i`.`label`,`supplier_id`,s.logo supplier_logo,s.title supplier_name FROM `dd_user_track` `t` LEFT JOIN `dd_supplier_goods` `i` ON `t`.`first_id`=`i`.`id` LEFT JOIN `dd_supplier` `s` ON `s`.`id`=`i`.`supplier_id` WHERE  `t`.`user_id` = 479  AND `t`.`type` = 10 ORDER BY `update_int` DESC LIMIT 0,20 [ RunTime:0.049812s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_supplier_goods` [ RunTime:0.047515s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 67  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.085940s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 52  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.090429s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 33  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.065062s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 66  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.067397s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 19  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.070261s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 48  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.066096s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_supplier_goods` WHERE  `id` = 54  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.066829s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_user_track` `t` LEFT JOIN `dd_supplier_goods` `i` ON `t`.`first_id`=`i`.`id` WHERE  `t`.`user_id` = 479  AND `t`.`type` = 10 [ RunTime:0.053483s ]