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