$arr) if (in_array($this->type, $arr['bind'])) $types[] = $type; $query = $this->app->db->name('ShopPayment')->where(['status' => 1, 'deleted' => 0])->whereIn('type', $types); $this->success('获取支付参数数据', $query->order('sort desc,id desc')->field('type,code,name')->select()->toArray()); } }