1、合作商余额查询
2、分油账户司机可用额度
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
namespace app\console\command;
|
||||
|
||||
use app\common\service\MallOil;
|
||||
use app\common\service\PartnersOil;
|
||||
use app\common\service\QueueService;
|
||||
use think\console\Command;
|
||||
@@ -82,6 +83,17 @@ class NotifyQueue extends Command
|
||||
if(!$order){
|
||||
return false;
|
||||
}
|
||||
// 小程序(商城)单没有下游下单平台可回调:把状态回写到 yoshop_order_goods,
|
||||
// 小程序端的订单列表/详情、后台订单页的基础列都读那张表。直接算成功,不重试。
|
||||
if (MallOil::isMall($order)) {
|
||||
MallOil::syncGoods($order, (string)($data['optType'] ?? ''));
|
||||
// 逐笔标记已处理,否则后台「重推加油结果」会一直认为这些流水没通知过
|
||||
if (!empty($data['consume_id'])) {
|
||||
Db::name('qyt_consume')->where('id', (int)$data['consume_id'])
|
||||
->update(['notify_status' => 1, 'notify_time' => time()]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
$partners = partnersModel::detail($order['partners_id']);
|
||||
if(!$partners){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user