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, }); } }