create(2,'pay2'); dd($r); $list = DB::table(TableName::agent() . 'admin_configs') ->where('type', 'pay') ->where('status', 1) ->orderBy('pay_error') ->orderByDesc('sort') ->pluck('name', 'id')->toArray(); dd($list); // $redis = new RedisConnect(); // // 判断开关 // $open = 1; // $pay_id = 2; // 支付ID // // // 判断支付渠道 // if (!$redis->redis()->exists('pay_channel')) { // // // 插表 -- 错误支付id存表 // // DB::table(TableName::agent() . 'pay_poll') // ->updateOrInsert(['id' => 1], ['error_pay_id' => $pay_id . ',']); // // DB::table(TableName::agent() . 'admin_configs')->where('id', $id)->update(['pay_error' => 1]); // // // $list = DB::table(TableName::agent() . 'admin_configs') // ->where('type', 'pay') // ->where('status', 1) // ->orderBy('pay_error') // ->orderByDesc('sort') // ->pluck('name', 'id')->toArray(); // // // // // // } } }