Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝小程序如何支持? #177

Closed
loewe0202 opened this issue Dec 24, 2018 · 4 comments
Closed

支付宝小程序如何支持? #177

loewe0202 opened this issue Dec 24, 2018 · 4 comments

Comments

@loewe0202
Copy link

//支付宝小程序适配器
module.exports = function(request, responseCallback) {
var con = {
method: request.method,
url: request.url,
dataType: request.dataType || undefined,
headers: request.headers,
data: request.body || {},
success(res) {
responseCallback({
statusCode: res.status,
responseText: res.data,
headers: res.headers,
statusMessage: res.errMsg
});
},
fail(res) {
responseCallback({
statusCode: res.status || 0,
statusMessage: res.errMsg
});
}
};
my.httpRequest(con);
};

//支付宝小程序入口
var _Fly = require("./fly")
var EngineWrapper = require("./engine-wrapper")
var adapter = require("./adapter/my")
var myEngine = EngineWrapper(adapter)
module.exports=function (engine) {
return new _Fly(engine || myEngine);
}

// build 文件
var npmExtra = {
"wx": "./src/wx.js",
"my": "./src/my.js",
"weex": "./src/weex.js",
"hap": "./src/hap.js"
}

我修改了这三个文件,但是在小程序运行的时候提示 ReferenceError: my is not defined ,请问这个该如何处理?

@loewe0202
Copy link
Author

image

@loewe0202
Copy link
Author

是我电脑的编译器的问题,我重新下载编译器就好了。。。

@rockywu
Copy link

rockywu commented Jan 14, 2019

@wendux
Copy link
Owner

wendux commented Jan 25, 2019

已支持

@wendux wendux closed this as completed Jan 25, 2019
wendux added a commit that referenced this issue Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants