hefei 1 год назад
Родитель
Сommit
40a1270627
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/command/PensionTasks.php

+ 4 - 4
app/command/PensionTasks.php

@@ -87,7 +87,7 @@ class PensionTasks extends Command
87 87
         $OrderGzcRepository      = app()->make(OrderGzcRepository::class);
88 88
         $OrderMerchantRepository = app()->make(OrderMerchantRepository::class);
89 89
         $StoreOrderRepository    = app()->make(StoreOrderRepository::class);
90
-        $cursor = Db::table('user_bill')
90
+        $cursor = Db::name('user_bill')
91 91
         ->where('status', 1)
92 92
         ->where('is_gzc', 0)
93 93
         ->where('commission_type', 5)
@@ -153,17 +153,17 @@ class PensionTasks extends Command
153 153
                 $create    = [
154 154
                     'uid'          => $online['uid'],
155 155
                     'platform_no'  => $orderId,
156
-                    'account_type' => $online['pay_type'] == 1 ? 3 : 2,
156
+                    'account_type' => 1,
157 157
                     'user_name'    => $certification['user_name'],
158 158
                     'mobile'       => $certification['mobile'],
159 159
                     'user_card'    => $certification['user_card'],
160 160
                     'pension'      => $pension,
161
-                    'order_type'   => 2,
161
+                    'order_type'   => $type_shop,
162 162
                     'out_trade_no' => $online['order_sn'],
163 163
                     'link_id'=> $bill['bill_id']
164 164
                 ];
165 165
                 $test_user = Db::name('user')->where('uid', $online['uid'])->value('test_user');
166
-                $check     = Db::name("gzc_logs")->where("link_id", $bill['id'])->where("order_type", 2)->count();
166
+                $check     = Db::name("gzc_logs")->where("link_id", $bill['bill_id'])->where("order_type", $type_shop)->count();
167 167
                 if ($test_user == 0 && $check <= 0) {
168 168
                     $OrderGzcRepository->create($create);
169 169
                     Db::name('user_bill')