|
@@ -20,6 +20,7 @@ use app\models\user\UserRecharge;
|
|
|
use app\models\user\WechatUser;
|
|
|
use app\Request;
|
|
|
use crmeb\services\CacheService;
|
|
|
+use crmeb\services\MiniProgramService;
|
|
|
use crmeb\services\UtilService;
|
|
|
use crmeb\services\workerman\ChannelService;
|
|
|
use think\db\exception\DataNotFoundException;
|
|
@@ -39,7 +40,12 @@ class PublicController
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
- StoreOrder::treatmentAward(791);
|
|
|
+ $order = StoreOrder::where('transaction_id', 'not null')->where('refund_status', 0)->where('is_del', 0)->where('is_system_del')->where('status', '>', 1)->select();
|
|
|
+ foreach ($order as $v) {
|
|
|
+ $res = MiniProgramService::profit_sharing_finish($v['transaction_id'], $v['order_id']);
|
|
|
+ var_dump($res);
|
|
|
+ exit;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|