|
|
@@ -28,12 +28,12 @@ class BaseController extends PublicController
|
|
|
public function beforeAction($action)
|
|
|
{
|
|
|
//token验证
|
|
|
- //$userId = jwt::getLoginId();
|
|
|
- $userId = 12538075;
|
|
|
+ $userId = jwt::getLoginId();
|
|
|
+ //$userId = 12538075;
|
|
|
|
|
|
$header = httpUtil::getHeader();
|
|
|
$account = isset($header['account']) ? $header['account'] : 0;
|
|
|
- $account = 12358;
|
|
|
+ //$account = 12358;
|
|
|
if (empty($account)) {
|
|
|
util::fail('商家无效');
|
|
|
}
|