【增加】退款扣除钻石 bug修复
This commit is contained in:
parent
a7c8a904f2
commit
b192f24866
|
|
@ -323,7 +323,7 @@ class FenxiaoOrder extends BaseModel
|
||||||
$i_fenxiao = model('fenxiao')->getInfo(['member_id' => $order_goods['member_id']], 'fenxiao_id,fenxiao_name,parent,grand_parent');
|
$i_fenxiao = model('fenxiao')->getInfo(['member_id' => $order_goods['member_id']], 'fenxiao_id,fenxiao_name,parent,grand_parent');
|
||||||
if ($i_fenxiao) {
|
if ($i_fenxiao) {
|
||||||
$fenxiao_account = new FenxiaoAccount;
|
$fenxiao_account = new FenxiaoAccount;
|
||||||
$fenxiao_account->addAccount($i_fenxiao['fenxiao_id'], $i_fenxiao['fenxiao_name'], 'diamond', -$goode_info['give_diamond'], $goode_info['order_id'],'diamond', '商品退款扣除');
|
$fenxiao_account->addAccount($i_fenxiao['fenxiao_id'], $i_fenxiao['fenxiao_name'], 'diamond', -$goode_info['give_diamond'], $order_goods['order_id'],'diamond', '商品退款扣除');
|
||||||
}
|
}
|
||||||
$res = model("fenxiao_order")->update([ 'is_refund' => 1 ], [ [ 'order_goods_id', '=', $order_goods[ 'order_goods_id' ] ] ]);
|
$res = model("fenxiao_order")->update([ 'is_refund' => 1 ], [ [ 'order_goods_id', '=', $order_goods[ 'order_goods_id' ] ] ]);
|
||||||
return $this->success($res);
|
return $this->success($res);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue