wupengfei 2 years ago
parent
commit
422ca801a4

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +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/Qc.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Qc.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/listener/order/OrderListener.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/listener/order/OrderListener.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -218,7 +219,7 @@
       <workItem from="1673399011843" duration="19253000" />
       <workItem from="1673485061294" duration="18259000" />
       <workItem from="1673571454158" duration="9346000" />
-      <workItem from="1674867530758" duration="15861000" />
+      <workItem from="1674867530758" duration="16121000" />
     </task>
     <servers />
   </component>

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

@@ -17,7 +17,7 @@ class Qc extends Base {
     public function index()
     {
         Hook::add('test','app\\listener\\order\\OrderListener');
-        $result = Hook::exec(['app\\listener\\order\\OrderListener','test'], ['user_id'=>97]);
+        $result = Hook::exec(['app\\listener\\order\\OrderListener','test11'], ['user_id'=>97]);
         var_dump($result,1199);
     }
 

+ 8 - 0
application/listener/order/OrderListener.php

@@ -13,4 +13,12 @@ class OrderListener
         return 99;
     }
 
+    // 测试
+    public function test11($param)
+    {
+        var_dump($param);
+        ExpressService::orderUrge(1,1);
+        return 99;
+    }
+
 }