user_info 验证user_token

master
tpingzhang 5 years ago
parent 2de43c76b8
commit 40af9b0e51

@ -45,8 +45,8 @@ class BaseController extends RestController{
if (!(in_array($c, $this->noToken) if (!(in_array($c, $this->noToken)
|| in_array($a, $this->noToken) || in_array($a, $this->noToken)
|| in_array($c.".".$a, $this->noToken))) { || in_array($c.".".$a, $this->noToken))) {
if ($data['api_ver'] == 2) { if ($data['api_ver'] == 2) {
self::apiverify($data['user_id'], $data['game_id'], $data['user_token']); self::apiverify($data['user_id'], $data['game_id'], $data['user_token']);

@ -11,7 +11,6 @@ use App\Model\UserModel;
use App\Model\PointShopRecordModel; use App\Model\PointShopRecordModel;
use Qiniu\json_decode; use Qiniu\json_decode;
use Think\Log; use Think\Log;
use App\Controller\BaseController;
class UserController extends BaseController class UserController extends BaseController
{ {

Loading…
Cancel
Save