提交 62b50ff2 编写于 作者: VK1688's avatar VK1688

优化支付宝小程序支付细节

上级 079dcd58
......@@ -445,6 +445,9 @@
input {
border: 1px solid #f3f3f3;
padding: 10rpx;
width: 100%;
box-sizing: border-box;
height: 80rpx;
}
button {
......
......@@ -31,13 +31,14 @@ var alipay = {
// 格式化url和请求参数
const { url, execParams } = this._formatUrl(signData);
let res = await uniCloud.httpclient.request(url, {
method: 'POST',
data: execParams,
dataType: 'text',
});
const result = JSON.parse(res.data)
let response = result.alipay_system_oauth_token_response;
if (res.status === 200 && response.user_id) {
if (res.status === 200 && response && response.user_id) {
return {
errCode: 0,
errMsg: 'ok',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册