Просмотр исходного кода

后台-用户列表奖励变更-测试发放养老金推到公证处功能

xupuyuan 1 год назад
Родитель
Сommit
59d12746d2
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      app/common/repositories/user/UserRepository.php

+ 20 - 0
app/common/repositories/user/UserRepository.php

@@ -1102,6 +1102,26 @@ class UserRepository extends BaseRepository
1102
                 }
1102
                 }
1103
                 Db::name('user_bill')->insert($isert_data);
1103
                 Db::name('user_bill')->insert($isert_data);
1104
             }
1104
             }
1105
+
1106
+            if ($commission_type == 5 && $award_type == 1) {
1107
+                $cer = Db::name('user')
1108
+                    ->where('uid', $user['uid'])
1109
+                    ->field('user_name, mobile, user_card')
1110
+                    ->find();
1111
+                $ylj_data_log = [
1112
+                    'user_name' => $cer['user_name'],
1113
+                    "mobile" => $cer['mobile'],
1114
+                    "user_card" => $cer['user_card'],//身份证
1115
+                    "pension" => $num,//养老金额度
1116
+                    "out_trade_no" => null,//订单号
1117
+                    "pay_time" => null,
1118
+                    "create_time" => date('Y-m-d H:i:s'),
1119
+                    "update_time" => null,
1120
+                    "uid" => $user['uid'],
1121
+                    "platform_no" => 'IN10' . (int)(microtime(true) * 1000) . mt_rand(10000, 99999),
1122
+                ];
1123
+                Db::name('gzc_logs')->insert($ylj_data_log);
1124
+            }
1105
             $insert_data = [
1125
             $insert_data = [
1106
                 'uid' => $user['uid'],
1126
                 'uid' => $user['uid'],
1107
                 'type' => $type,
1127
                 'type' => $type,