|
@@ -67,11 +67,11 @@ class FilesController extends Controller {
|
|
|
}
|
|
|
|
|
|
async wxupload() {
|
|
|
- const { serverid, type } = this.ctx.request.body;
|
|
|
+ const { serverid, type, appid } = this.ctx.request.body;
|
|
|
assert(serverid, 'serverid不允许为空');
|
|
|
assert(type, 'type不允许为空');
|
|
|
const { ctx, app } = this;
|
|
|
- const url = app.config.wx.wxdown + serverid;
|
|
|
+ const url = app.config.wx.wxdown(appid, serverid);
|
|
|
console.log(url);
|
|
|
console.log(type);
|
|
|
const file = await this.ctx.curl(url);
|