get($requestUrl, $sysParams); $resp = json_decode($resp, true); if (empty($resp)) { throw new Exception('请求异常', 500); } return $resp; } catch (Exception $e) { Zc::getLog('ms_client/execute')->info("execute error route[$route] params[" . ZcArrayHelper::sp($params) . "] curlInfo:" . print_r($ywCurl->getInfo(), true) . ", errorMsg:" . $e->getMessage()); return CommonTool::failCodeResult($e->getCode(), '请求异常'); } } } private static function generateSign($sysParams) { ksort($sysParams); $stringToBeSigned = self::$msApiConfig['secretKey']; foreach ($sysParams as $k => $v) { $stringToBeSigned .= "$k$v"; } unset($k, $v); $stringToBeSigned .= self::$msApiConfig['secretKey']; return md5($stringToBeSigned); } }