Commit 9d5c89da authored by gaodapeng's avatar gaodapeng

增加了判空

parent f090f2c8
......@@ -272,9 +272,13 @@ Page({
context.goPage('payresult');
} else if (res.action == ACTION_ON_PAY_FAILED) {
var failedMessage = res.data;
if (null == failedMessage) {
failedMessage = "支付失败";
}
context.setData({
isPaySuccess: false,
payFailedReason: res.data.message
payFailedReason: failedMessage
});
context.goPage('payresult');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment