|
|
|
@ -100,11 +100,11 @@ class Payment extends BaseService |
|
|
|
|
// 构建第三方支付请求的参数 |
|
|
|
|
$payment = $this->unifiedorder($extra); |
|
|
|
|
// 记录第三方交易信息 |
|
|
|
|
// $order_type = OrderTypeEnum::MEMBER;//开通会员 |
|
|
|
|
// if ($this->orderInfo['order_type'] == IdentityEnum::DEALER) { |
|
|
|
|
// $order_type = OrderTypeEnum::DEALER;//开通分销商 |
|
|
|
|
// } |
|
|
|
|
// $this->recordPaymentTrade($payment, $order_type); |
|
|
|
|
$order_type = OrderTypeEnum::RETAIL;//开通零售商城 |
|
|
|
|
if ($this->orderInfo['order_type'] == 20) { |
|
|
|
|
$order_type = OrderTypeEnum::SALE;//开通批发商城 |
|
|
|
|
} |
|
|
|
|
$this->recordPaymentTrade($payment, $order_type); |
|
|
|
|
// 返回结果 |
|
|
|
|
return compact('payment'); |
|
|
|
|
} |
|
|
|
|