2025011935557114401 ]; $this->yes($response); } protected function getAppSecret() { return 'ez8bfsrgefga5nkx5zgccegrb25mct7w'; } /** * 返回成功的消息 * @param mixed $info * @param string $data * @param integer $code */ protected function yes($data = '{-null-}', $info = 'ok', $code = 200) { $response = [ 'code' => $code, 'message' => $info, 'data' => $data ]; throw new HttpResponseException(json($response)); } }