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
Comments
是我电脑的编译器的问题,我重新下载编译器就好了。。。 |
wendux
added a commit
that referenced
this issue
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
//支付宝小程序适配器
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 ,请问这个该如何处理?
The text was updated successfully, but these errors were encountered: