|
|
@@ -1093,6 +1093,7 @@ class UserRepository extends BaseRepository
|
|
1093
|
1093
|
if($award_type == 1){
|
|
1094
|
1094
|
// 增加
|
|
1095
|
1095
|
$isert_data['pm'] = 1;
|
|
|
1096
|
+ $isert_data['gzc'] = 1;
|
|
1096
|
1097
|
Db::name('user')->where('uid',$user['uid'])->inc('annuity', $num)->update();
|
|
1097
|
1098
|
}else{
|
|
1098
|
1099
|
// 减少
|
|
|
@@ -1102,6 +1103,29 @@ class UserRepository extends BaseRepository
|
|
1102
|
1103
|
}
|
|
1103
|
1104
|
Db::name('user_bill')->insert($isert_data);
|
|
1104
|
1105
|
}
|
|
|
1106
|
+
|
|
|
1107
|
+ if ($commission_type == 5 && $award_type == 1) {
|
|
|
1108
|
+ $cer = Db::name('user')
|
|
|
1109
|
+ ->where('uid', $user['uid'])
|
|
|
1110
|
+ ->field('real_name, phone, card_id')
|
|
|
1111
|
+ ->find();
|
|
|
1112
|
+ $ylj_data_log = [
|
|
|
1113
|
+ 'user_name' => $cer['real_name'],
|
|
|
1114
|
+ "mobile" => $cer['phone'],
|
|
|
1115
|
+ "user_card" => $cer['card_id'],//身份证
|
|
|
1116
|
+ "pension" => $num,//养老金
|
|
|
1117
|
+ "out_trade_no" => '',
|
|
|
1118
|
+ "account_type" => '',
|
|
|
1119
|
+ "order_type" => 0,
|
|
|
1120
|
+ "pay_time" => '',
|
|
|
1121
|
+ "create_time" => date('Y-m-d H:i:s'),
|
|
|
1122
|
+ "update_time" => date('Y-m-d H:i:s'),
|
|
|
1123
|
+ "uid" => $user['uid'],
|
|
|
1124
|
+ "platform_no" => 'IN10' . (int)(microtime(true) * 1000) . mt_rand(10000, 99999),
|
|
|
1125
|
+ "link_id" => ''
|
|
|
1126
|
+ ];
|
|
|
1127
|
+ Db::name('gzc_logs')->insert($ylj_data_log);
|
|
|
1128
|
+ }
|
|
1105
|
1129
|
$insert_data = [
|
|
1106
|
1130
|
'uid' => $user['uid'],
|
|
1107
|
1131
|
'type' => $type,
|