getMessage(); } } /** * @notes 打印机列表 * @param $shop_id * @return mixed * @author 段誉 * @date 2022/1/19 18:54 */ public static function getPrinterList($shop_id) { $where[] = ['p.del', '=', 0]; $where[] = ['pc.type', '=', 1]; //类型为易联云 $where[] = ['p.shop_id', '=', $shop_id]; $result = (new Printer())->alias('p') ->join('printer_config pc', 'p.config_id = pc.id') ->where($where) ->column('machine_code,private_key,print_number', 'machine_code'); return $result; } }