6 || (int)$index_type<0 ) { throw new MyException("index_type参数不合法",101); } $stock_info=Index_day_k::get_current_day_index($index_type,$date); echo action_msg_data(API::SUCCESS_MSG, API::SUCCESS, $stock_info); }catch (MyException $e){ $api->ApiError($e->getCode(), $e->getMessage()); }