6
0
Fork 0

调整售后问题,以及快递100配置回调地址问题

release
vine_liutk 2021-12-27 15:02:47 +08:00
parent 91ba288ef7
commit 0a7460e983
2 changed files with 7 additions and 1 deletions

View File

@ -168,10 +168,16 @@ class AfterSale extends Model
//如果取消订单 //如果取消订单
if ($afterSale->state == self::STATE_CANCEL) { if ($afterSale->state == self::STATE_CANCEL) {
$afterSale->createCancelLog(); $afterSale->createCancelLog();
$afterSale->orderProduct->update([
'after_sale_state'=>0,
]);
} }
//如果完成订单 //如果完成订单
if ($afterSale->state == self::STATE_FINISH) { if ($afterSale->state == self::STATE_FINISH) {
$afterSale->createFinishLog(); $afterSale->createFinishLog();
$afterSale->orderProduct->update([
'after_sale_state'=>2,
]);
} }
}); });
} }

View File

@ -1344,7 +1344,7 @@ class Kuaidi100Service
public function poll(string $number, string $code, string $phone) public function poll(string $number, string $code, string $phone)
{ {
$uri = '/poll'; $uri = '/poll';
$callbackUrl = app_settings('kuaidi100.callback'); $callbackUrl = app_settings('kuaidi100.callback_uri');
if (empty($callbackUrl)) { if (empty($callbackUrl)) {
throw new BizException('未配置推送回调地址'); throw new BizException('未配置推送回调地址');