efps-version
ljl 1 year ago
parent 785b4e0c8f
commit 799205aa63

@ -30,12 +30,13 @@ class ApiRequest extends Request
}
protected function checkSign($params) {
if ($params['timestamp'] < time() - 6000) {
throw new BusinessException('请求已过期');
}
if (!Signer::verify($params, $this->app->app_key)) {
throw new BusinessException('验签错误');
}
if ($params['timestamp'] < time() - 6000) {
throw new BusinessException('请求已过期');
}
}
protected function checkApp($appId) {

Loading…
Cancel
Save