第一次提交
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
const word = {
|
||||
|
||||
};
|
||||
|
||||
const sentence = {
|
||||
50403: 'Permission denied',
|
||||
51001: 'Invalid out_trade_no',
|
||||
51002: 'Invalid code',
|
||||
51003: 'Invalid order_no',
|
||||
51004: 'Invalid type',
|
||||
51005: 'Invalid total_fee',
|
||||
51006: 'Invalid description',
|
||||
51007: 'Invalid provider',
|
||||
51008: 'Invalid clientInfo',
|
||||
51009: 'Invalid cloudInfo',
|
||||
51010: 'Invalid out_trade_no or transaction_id',
|
||||
52001: 'NotExist payOrder',
|
||||
52002: 'NotExist notifyUrl',
|
||||
53001: 'Create payment error',
|
||||
53002: 'Refund error',
|
||||
53003: 'Query refund error',
|
||||
53004: 'Close order error',
|
||||
53005: 'Cert verify error',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
...word,
|
||||
...sentence
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
let lang = {
|
||||
'zh-Hans': require('./zh-hans'),
|
||||
en: require('./en')
|
||||
}
|
||||
|
||||
function mergeLanguage(lang1, lang2) {
|
||||
const localeList = Object.keys(lang1)
|
||||
localeList.push(...Object.keys(lang2))
|
||||
const result = {}
|
||||
for (let i = 0; i < localeList.length; i++) {
|
||||
const locale = localeList[i]
|
||||
result[locale] = Object.assign({}, lang1[locale], lang2[locale])
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
try {
|
||||
const langPath = require.resolve('uni-config-center/uni-id/lang/index.js')
|
||||
lang = mergeLanguage(lang, require(langPath))
|
||||
} catch (error) {}
|
||||
|
||||
module.exports = lang
|
||||
@@ -0,0 +1,29 @@
|
||||
const word = {
|
||||
|
||||
};
|
||||
|
||||
const sentence = {
|
||||
50403: '权限错误',
|
||||
51001: '支付单号(out_trade_no)不能为空',
|
||||
51002: 'code不能为空',
|
||||
51003: '订单号(order_no)不能为空',
|
||||
51004: '回调类型(type)不能为空,如设置为goods代表商品订单',
|
||||
51005: '支付金额(total_fee)必须为正整数(>0的整数)(注意:100=1元)',
|
||||
51006: '支付描述(description)不能为空',
|
||||
51007: '支付供应商(provider)不能为空',
|
||||
51008: 'clientInfo不能为空',
|
||||
51009: 'cloudInfo不能为空',
|
||||
51010: '支付单号或第三方交易单号不能同时为空',
|
||||
52001: '支付订单不存在',
|
||||
52002: '请先配置正确的异步回调URL',
|
||||
53001: '获取支付信息失败,请稍后再试',
|
||||
53002: '退款失败',
|
||||
53003: '查询退款信息失败,请稍后再试',
|
||||
53004: '关闭订单失败,请稍后再试',
|
||||
53005: '证书错误,请检查支付证书',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
...word,
|
||||
...sentence
|
||||
}
|
||||
Reference in New Issue
Block a user