1、已知bug修复

2、微信接口更新
This commit is contained in:
2017-08-26 17:57:10 +08:00
parent cfcd6250ff
commit 356cccd1d4
25 changed files with 1353 additions and 695 deletions

View File

@@ -15,6 +15,16 @@ class Api {
public function __construct() {
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept , token");
$this->data = array('code' => 0, 'msg' => '', 'time' => time(), 'data' => '');
if (!$this->checkToken()) {
$this->data['code'] = '301';
$this->data['data'] = '非法请求!';
}
}
protected function checkToken(){
return true;
}
}