|
|
@@ -382,7 +382,7 @@ class OrderForm extends Model
|
|
|
$orderModel->ORDER_AMOUNT = $this->_decAmount;
|
|
|
$orderModel->PV = $this->_decPv;
|
|
|
$orderModel->PAY_AMOUNT = $this->_payAmount;
|
|
|
- $orderModel->PAY_PV = $this->_decPv;
|
|
|
+ $orderModel->PAY_PV = $this->payType =='exchange' ? 0 : $this->_decPv; // 兑换积分不能算业绩
|
|
|
$orderModel->PAY_AT = Date::nowTime();
|
|
|
$orderModel->PAY_TYPE = $this->payType;
|
|
|
$orderModel->PERIOD_NUM = $nowPeriodNum;
|
|
|
@@ -415,7 +415,7 @@ class OrderForm extends Model
|
|
|
if($this->payType=='cash') {
|
|
|
Cash::changeUserCash(\Yii::$app->user->id, 'CASH', -abs($this->_payAmount), ['REMARK' => '会员复销余额支付']);
|
|
|
} else if ($this->payType=='exchange') {
|
|
|
- Balance::changeUserBonus(\Yii::$app->user->id,'exchange_points', -abs($this->_payAmount),['DEAL_TYPE_ID' => DealType::RECONSUME_POINTS_EXCHANGE,'REMARK' => '会员复销积分兑换']);
|
|
|
+ Balance::changeUserBonus(\Yii::$app->user->id,'exchange_points', -abs($this->_payAmount),['DEAL_TYPE_ID' => DealType::EXCHANGE_POINTS_EXCHANGE,'REMARK' => '会员兑换积分兑换']);
|
|
|
} else{
|
|
|
Balance::changeUserBonus(\Yii::$app->user->id,'reconsume_points', -abs($this->_payAmount),['DEAL_TYPE_ID' => DealType::RECONSUME_POINTS_EXCHANGE,'REMARK' => '会员复销积分兑换']);
|
|
|
}
|