$data['time_stamp']) { $result = [ 'ResultCode' => 2002, 'ResultMessage' => "链接已过期", 'Data' => 'null', ]; return $this->ajaxReturn($result); } else { $sign = $data['sign']; unset($data['sign']); ksort($data); reset($data); $str = ""; foreach ($data as $k => $v) { $str = $str . $k . "=" . $v; } $str = $str . 'key=' . C('GET_INFO_KEY'); if (md5($str) != $sign) { $result = [ 'ResultCode' => 2001, 'ResultMessage' => "参数错误", 'Data' => 'null', ]; return $this->ajaxReturn($result); } } } }