支付问题处理
This commit is contained in:
parent
3dcff0b682
commit
87e13b3677
@ -1,5 +1,6 @@
|
||||
package cn.lili.modules.payment.kit.plugin.wechat.model;
|
||||
|
||||
import cn.lili.common.utils.StringUtils;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@ -42,6 +43,7 @@ public class UnifiedOrderModel {
|
||||
* 商品描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 商户订单号
|
||||
*/
|
||||
@ -82,6 +84,15 @@ public class UnifiedOrderModel {
|
||||
* 场景信息
|
||||
*/
|
||||
private SceneInfo scene_info;
|
||||
|
||||
|
||||
public String getDescription() {
|
||||
if (!StringUtils.isEmpty(description) && description.length() > 30) {
|
||||
return description.substring(30);
|
||||
}
|
||||
return description;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user