chuweiqiang 1 ano atrás
pai
commit
4812c6894d

+ 2 - 5
.idea/workspace.xml

@@ -3,10 +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/Recruit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Recruit.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/common/model/UserMessage.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common/model/UserMessage.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" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Mall.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Mall.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -482,7 +479,7 @@
       <workItem from="1700440204810" duration="14773000" />
       <workItem from="1700526499424" duration="11662000" />
       <workItem from="1700613253175" duration="10732000" />
-      <workItem from="1700699350870" duration="1598000" />
+      <workItem from="1700699350870" duration="2085000" />
     </task>
     <servers />
   </component>

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

@@ -425,7 +425,7 @@ class Mall extends Base
 //            ->count();
         $finish_num = 0;
         $refund_num = GoodsOrder::where(['user_id'=>$this->user_id,'is_deleted'=>0,'pay_state'=>1,'cancel_state'=>0])
-            ->where('refund_state','in','1,2,3')
+            ->where('refund_state','in','1')
             ->count();
         $this->success('ok',compact(['trolley_num','no_pay_num','no_express_num','express_num','finish_num','refund_num']));
     }

+ 23 - 0
runtime/log/single.log

@@ -43547,3 +43547,26 @@
 [ info ] [ PARAM ] array (
 )
 [ info ] [ DB ] INIT mysql
+---------------------------------------------------------------
+
+[2023-11-23T09:10:42+08:00] 127.0.0.1 POST gaoyx.com/api/Mall/getMarkNum
+[运行时间:2.745724s] [吞吐率:0.36req/s] [内存消耗:5,827.33kb] [文件加载:161]
+[ 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.eyJ1aWQiOjQ3OSwiaXNzIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiYXVkIjoiaHR0cHM6XC9cL3phaW4uY29tIiwiaWF0IjoxNzAwNzAwNjk3LCJuYmYiOjE3MDA3MDA2OTcsImV4cCI6MTcwMjE0MDY5NywiZmFjaWxpdHlfY29kZSI6ImRtbDJiMVl5TVRFNFFUTXhNVEk9IiwibG9naW5fdHlwZSI6IjEifQ.5lzYUqWdfHPV9rjS6UPHBfgozBSAjzpQBLDqgC9LPC8',
+  'cache-control' => 'no-cache',
+  'user-agent' => 'PostmanRuntime-ApipostRuntime/1.1.0',
+  'content-type' => '',
+)
+[ info ] [ PARAM ] array (
+)
+[ info ] [ DB ] INIT mysql

+ 15 - 0
runtime/log/single_sql.log

@@ -12671,3 +12671,18 @@
 [ sql ] [ SQL ] SHOW COLUMNS FROM `dd_recruit` [ RunTime:0.137103s ]
 [ sql ] [ SQL ] SELECT * FROM `dd_recruit` WHERE  `id` = 0  AND `status` = 1  AND `is_deleted` = 0 LIMIT 1 [ RunTime:0.138263s ]
 [ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_user_message` `m` WHERE  `m`.`user_id` = 479  AND `m`.`is_deleted` = 0  AND `m`.`module` = 'recruit'  AND `m`.`type_id` = 5 [ RunTime:0.130673s ]
+---------------------------------------------------------------
+
+[2023-11-23T09:10:42+08:00] 127.0.0.1 POST gaoyx.com/api/Mall/getMarkNum
+[ sql ] [ DB ] CONNECT:[ UseTime:0.179966s ] mysql:host=120.79.86.50;port=3306;dbname=gaoyixia_hdlkeji;charset=utf8mb4
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_system_config` [ RunTime:0.141262s ]
+[ sql ] [ SQL ] SELECT `name`,`value` FROM `dd_system_config` [ RunTime:1.289976s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_member` [ RunTime:0.119895s ]
+[ sql ] [ SQL ] SELECT * FROM `dd_store_member` WHERE  `id` = 479 LIMIT 1 [ RunTime:0.112623s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_shopping_trolley` [ RunTime:0.111060s ]
+[ sql ] [ SQL ] SELECT SUM(`num`) AS tp_sum FROM `dd_shopping_trolley` WHERE  `user_id` = 479 [ RunTime:0.114675s ]
+[ sql ] [ SQL ] SHOW COLUMNS FROM `dd_store_order` [ RunTime:0.121396s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_order` WHERE  `user_id` = 479  AND `is_deleted` = 0  AND `pay_state` = 0  AND `cancel_state` = 0  AND `status` = 0 [ RunTime:0.137063s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_order` WHERE  `user_id` = 479  AND `is_deleted` = 0  AND `pay_state` = 1  AND `express_state` = 0  AND `cancel_state` = 0  AND `refund_state` IN (0,1,2)  AND `status` = 1 [ RunTime:0.110446s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_order` WHERE  `user_id` = 479  AND `is_deleted` = 0  AND `pay_state` = 1  AND `express_state` = 1  AND `cancel_state` = 0  AND `status` = 1  AND `refund_state` = 0 [ RunTime:0.118428s ]
+[ sql ] [ SQL ] SELECT COUNT(*) AS tp_count FROM `dd_store_order` WHERE  `user_id` = 479  AND `is_deleted` = 0  AND `pay_state` = 1  AND `cancel_state` = 0  AND `refund_state` = 1 [ RunTime:0.110708s ]