|
@@ -1034,7 +1034,7 @@ class StoreOrderRepository extends BaseRepository
|
|
1034
|
$gxz_amount_mine = $user_data['contribute'] + $gx_jf;
|
1034
|
$gxz_amount_mine = $user_data['contribute'] + $gx_jf;
|
|
1035
|
$jf_amount_mine = $user_data['score'] + $gx_jf;
|
1035
|
$jf_amount_mine = $user_data['score'] + $gx_jf;
|
|
1036
|
|
1036
|
|
|
1037
|
- Db::name('user')->where('uid', $user_data['uid'])->update(['annuity' => $ylj_amount_mine, 'contribute' => $gxz_amount_mine, 'score' => $jf_amount_mine]);
|
|
|
|
|
|
1037
|
+ // Db::name('user')->where('uid', $user_data['uid'])->update(['annuity' => $ylj_amount_mine, 'contribute' => $gxz_amount_mine, 'score' => $jf_amount_mine]);
|
|
1038
|
$paystage_status = 1;
|
1038
|
$paystage_status = 1;
|
|
1039
|
//修改订单状态
|
1039
|
//修改订单状态
|
|
1040
|
$orderdatas = Db::name("store_order")->where("order_id", $_order->order_id)->update(['paid' => 1, 'pay_time' => date('Y-m-d H:i:s'), 'status' => 0, 'distribution_mode' => 1]);
|
1040
|
$orderdatas = Db::name("store_order")->where("order_id", $_order->order_id)->update(['paid' => 1, 'pay_time' => date('Y-m-d H:i:s'), 'status' => 0, 'distribution_mode' => 1]);
|
|
@@ -9712,9 +9712,9 @@ class StoreOrderRepository extends BaseRepository
|
|
9712
|
$yj_amount_90 = round($pv * 0.05, 2) * 0.9;
|
9712
|
$yj_amount_90 = round($pv * 0.05, 2) * 0.9;
|
|
9713
|
$fgj_amount_10 = round($pv * 0.05, 2) * 0.1;//推广者的佣金抽10%到个人复购金
|
9713
|
$fgj_amount_10 = round($pv * 0.05, 2) * 0.1;//推广者的佣金抽10%到个人复购金
|
|
9714
|
|
9714
|
|
|
9715
|
- $yj_amount = $merchant_user_data['brokerage_price'] + $yj_amount_90;
|
|
|
|
9716
|
- $fgj_amount = $merchant_user_data['fugou'] + $fgj_amount_10;
|
|
|
|
9717
|
- $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1);
|
|
|
|
|
|
9715
|
+ // $yj_amount = $merchant_user_data['brokerage_price'] + $yj_amount_90;
|
|
|
|
9716
|
+ // $fgj_amount = $merchant_user_data['fugou'] + $fgj_amount_10;
|
|
|
|
9717
|
+ // $this->fugou_user_log($merchant_data['uid'], $fgj_amount_10, $store_order_data['order_id'], 1);
|
|
9718
|
|
9718
|
|
|
9719
|
|
9719
|
|
|
9720
|
// Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|
9720
|
// Db::name('user')->where('uid',$merchant_data['uid'])->update(['brokerage_price'=>$yj_amount,'fugou'=>$fgj_amount]);
|