Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
ab2a90c7
Commit
ab2a90c7
authored
Jun 18, 2021
by
terrfly
Browse files
解决异常信息过长导致的插库失败
parent
84ce8320
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/alipay/AlipayKit.java
View file @
ab2a90c7
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
com.jeequan.jeepay.pay.channel.alipay
;
package
com.jeequan.jeepay.pay.channel.alipay
;
import
cn.hutool.core.util.StrUtil
;
import
com.alipay.api.AlipayObject
;
import
com.alipay.api.AlipayObject
;
import
com.alipay.api.AlipayRequest
;
import
com.alipay.api.AlipayRequest
;
import
com.alipay.api.domain.*
;
import
com.alipay.api.domain.*
;
...
@@ -77,10 +78,13 @@ public class AlipayKit {
...
@@ -77,10 +78,13 @@ public class AlipayKit {
public
static
String
appendErrMsg
(
String
msg
,
String
subMsg
){
public
static
String
appendErrMsg
(
String
msg
,
String
subMsg
){
String
result
=
null
;
if
(
StringUtils
.
isNotEmpty
(
msg
)
&&
StringUtils
.
isNotEmpty
(
subMsg
)
){
if
(
StringUtils
.
isNotEmpty
(
msg
)
&&
StringUtils
.
isNotEmpty
(
subMsg
)
){
return
msg
+
"【"
+
subMsg
+
"】"
;
result
=
msg
+
"【"
+
subMsg
+
"】"
;
}
else
{
result
=
StringUtils
.
defaultIfEmpty
(
subMsg
,
msg
);
}
}
return
Str
ing
Util
s
.
defaultIfEmpty
(
subMsg
,
msg
);
return
StrUtil
.
maxLength
(
result
,
253
);
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment