/** * 9 得到门店支付方式列表 * @param json json_params{location_id} * $return $arr_result ||$return_status * url:/index.php?r=CarrentalApi/rc/PaymentMethodListRQ&json_params={"location_id":"1124991"} **/ public function actionPaymentMethodListRQ() { $json_params = Yii::app()->request->getParam('json_params'); //客户端请求的json参数 $Redis = YiiRedis::getInstance(); $redisKey = 'paymentMethodList_' . md5($json_params); if ($Redis->get($redisKey)) { $Rs = $Redis->get($redisKey); } else { $Rs = RcManager::PaymentMethodListRQ($json_params); $Rs_array = json_decode($Rs, true); if ($Rs_array['status']) { $Redis->set($redisKey, $Rs, 60 * 60 * 24); //24h } } //$Rs=RcManager::PaymentMethodListRQ($json_params); echo $Rs; }