|
|
@@ -138,25 +138,25 @@ class UserOfflineRechargeRepository extends BaseRepository
|
|
138
|
138
|
//496商户线下支付不返回养老金
|
|
139
|
139
|
$orders = OrderMerchant::getDB()->where('pay_user_id', $unionUser->unionid)->where('status', 1) ->whereNotIn('mer_id', [496]) ->where('binds',0)->select();
|
|
140
|
140
|
foreach ($orders as $order) {
|
|
141
|
|
- app()->make(UserBillRepository::class)->incBill($unionUser->uid, 'now_money', 'commission', [
|
|
142
|
|
- 'link_id' => $order->id,
|
|
143
|
|
- 'pm' => 1,
|
|
144
|
|
- 'status' => 1,
|
|
145
|
|
- 'title' => '养老金',
|
|
146
|
|
- 'number' => $order->pension,
|
|
147
|
|
- 'mark' => '线下消费获得养老金',
|
|
148
|
|
- 'commission_type' => 5,
|
|
149
|
|
- 'balance' => $user->annuity,
|
|
150
|
|
- 'order_sn' => $order->out_trade_no,
|
|
151
|
|
- 'mer_id' => $order->mer_id,
|
|
152
|
|
- 'source' => 1
|
|
153
|
|
- ]);
|
|
154
|
|
- $user->annuity += $order->pension;
|
|
155
|
|
- $user->annuity_num += 1;
|
|
|
141
|
+ // app()->make(UserBillRepository::class)->incBill($unionUser->uid, 'now_money', 'commission', [
|
|
|
142
|
+ // 'link_id' => $order->id,
|
|
|
143
|
+ // 'pm' => 1,
|
|
|
144
|
+ // 'status' => 1,
|
|
|
145
|
+ // 'title' => '养老金',
|
|
|
146
|
+ // 'number' => $order->pension,
|
|
|
147
|
+ // 'mark' => '线下消费获得养老金',
|
|
|
148
|
+ // 'commission_type' => 5,
|
|
|
149
|
+ // 'balance' => $user->annuity,
|
|
|
150
|
+ // 'order_sn' => $order->out_trade_no,
|
|
|
151
|
+ // 'mer_id' => $order->mer_id,
|
|
|
152
|
+ // 'source' => 1
|
|
|
153
|
+ // ]);
|
|
|
154
|
+ // $user->annuity += $order->pension;
|
|
|
155
|
+ // $user->annuity_num += 1;
|
|
156
|
156
|
if (!$user->mer_id || !$user->locktime) {
|
|
157
|
157
|
Db::name('user')->where('uid', $unionUser->uid)->update(['mer_id' => $order->mer_id, 'locktime' => date('Y-m-d H:i:s')]);
|
|
158
|
158
|
}
|
|
159
|
|
- $user->save();
|
|
|
159
|
+ // $user->save();
|
|
160
|
160
|
|
|
161
|
161
|
//同步用户部分------------------------------------
|
|
162
|
162
|
//同步红包
|