调整售后问题,以及快递100配置回调地址问题
parent
91ba288ef7
commit
0a7460e983
|
|
@ -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,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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('未配置推送回调地址');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue