Kirin 3 anni fa
parent
commit
5685862715
1 ha cambiato i file con 2 aggiunte e 8 eliminazioni
  1. 2 8
      app/api/controller/PublicController.php

+ 2 - 8
app/api/controller/PublicController.php

@@ -23,6 +23,7 @@ use crmeb\services\CacheService;
 use crmeb\services\MiniProgramService;
 use crmeb\services\UtilService;
 use crmeb\services\workerman\ChannelService;
+use crmeb\subscribes\TaskSubscribe;
 use think\db\exception\DataNotFoundException;
 use think\db\exception\DbException;
 use think\db\exception\ModelNotFoundException;
@@ -40,14 +41,7 @@ class PublicController
 
     public function test()
     {
-        try {
-            Db::startTrans();
-            StoreOrder::startTakeOrder();//7天自动收货
-            Db::commit();
-        } catch (\Exception $e) {
-            var_dump($e->getMessage());
-            Db::rollback();
-        }
+        var_dump((new TaskSubscribe())->onTask_30());
     }
 
     /**