|
@@ -23,7 +23,6 @@ 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;
|
|
@@ -41,7 +40,19 @@ class PublicController
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
- var_dump((new TaskSubscribe())->onTask_30());
|
|
|
+
|
|
|
+ $order = StoreOrder::where('transaction_id', 'not null')->where('refund_status', 0)->where('is_del', 0)->where('is_system_del', 0)->where('status', '>', 1)->select();
|
|
|
+ var_dump(count($order));
|
|
|
+ try {
|
|
|
+ foreach ($order as $v) {
|
|
|
+ $res = MiniProgramService::profit_sharing_finish($v['transaction_id'], 'over_' . $v['order_id']);
|
|
|
+
|
|
|
+ var_dump($res);
|
|
|
+
|
|
|
+ }
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ var_dump($e->getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|