From 6baf69af698280cc8c27957dd28eaed75377117e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 13 Jun 2023 17:12:52 +0800 Subject: [PATCH] 1 --- third_party/phpcommon | 2 +- webapp/controller/UserController.class.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/third_party/phpcommon b/third_party/phpcommon index e658ed5f..a071cc2b 160000 --- a/third_party/phpcommon +++ b/third_party/phpcommon @@ -1 +1 @@ -Subproject commit e658ed5f7e4112801e59206f6da6f01db7131cd1 +Subproject commit a071cc2b7fcc2e5c9597d29d07378b4f29ace591 diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 55451d5a..9bb47438 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -805,6 +805,11 @@ class UserController extends BaseAuthedController { public function updateAddressBind() { + if (myself()->_getChannel() != BC_POLY_CHANNEL) { + phpcommon\sendError(1, 'token error'); + die(); + return; + } error_log(json_encode($_REQUEST)); $jwt = getReqVal('jwt', '');