redis) { $this->redis = RedisService::getInstance(); } } ############################以上为根据 # 渠道对接测试,测试锁卡 public function channel_lock() { $input = input(); $order_id = $input['order']; # 获取锁卡订单 $order_info = $this->getOrder($order_id); if(!$order_info) return '未找到订单'; $channelService = ChannelService::instance(); $response = $channelService->call('lockCard', $order_info['cid'], $order_info); var_dump($response);die; } public function channel_unlock() { $input = input(); $order_id = $input['order']; # 获取锁卡订单 $order_info = $this->getOrder($order_id); if(!$order_info) return '未找到订单'; $channelService = ChannelService::instance(); $response = $channelService->call('UnlockCard', $order_info['cid'], $order_info); var_dump($response);die; } }