提交 80d0bec7 编写于 作者: D devil

支付宝自提地址选择无效 bug 修复,商品评论匿名处理函数优化

上级 88a11340
......@@ -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;
......
......@@ -78,7 +78,7 @@ Page({
{
this.setData({
address: cache_address.data,
address_id: cache_address.id,
address_id: cache_address.data.id,
});
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册