From 80d0bec7f801720b48d409cbd606902eec68144e Mon Sep 17 00:00:00 2001 From: devil Date: Mon, 6 Apr 2020 20:49:19 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=94=AF=E4=BB=98=E5=AE=9D=E8=87=AA?= =?UTF-8?q?=E6=8F=90=E5=9C=B0=E5=9D=80=E9=80=89=E6=8B=A9=E6=97=A0=E6=95=88?= =?UTF-8?q?=20bug=20=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=95=86=E5=93=81=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=8C=BF=E5=90=8D=E5=A4=84=E7=90=86=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsCommentsService.php | 2 +- sourcecode/alipay/pages/buy/buy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/service/GoodsCommentsService.php b/application/service/GoodsCommentsService.php index 8a03d6513..ec7326f6e 100644 --- a/application/service/GoodsCommentsService.php +++ b/application/service/GoodsCommentsService.php @@ -213,7 +213,7 @@ class GoodsCommentsService { $v['user'] = [ 'avatar' => $user['avatar'], - 'user_name_view' => ($v['is_anonymous'] == 1) ? '匿名' : substr($user['user_name_view'], 0, 3).'***'.substr($user['user_name_view'], -3), + 'user_name_view' => ($v['is_anonymous'] == 1) ? '匿名' : mb_substr($user['user_name_view'], 0, 3, 'utf-8').'***'.mb_substr($user['user_name_view'], -3, null, 'utf-8'), ]; } else { $v['user'] = $user; diff --git a/sourcecode/alipay/pages/buy/buy.js b/sourcecode/alipay/pages/buy/buy.js index 58c924c3f..ea855c6a3 100644 --- a/sourcecode/alipay/pages/buy/buy.js +++ b/sourcecode/alipay/pages/buy/buy.js @@ -78,7 +78,7 @@ Page({ { this.setData({ address: cache_address.data, - address_id: cache_address.id, + address_id: cache_address.data.id, }); } }