opti: update cross-request

This commit is contained in:
suxiaoxin 2017-10-13 19:49:08 +08:00
parent b913981fcd
commit 4d150be59b
2 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class interfaceController extends baseController {
async downloadCrx(ctx){
let filename = 'crossRequest.zip';
let dataBuffer = yapi.fs.readFileSync(yapi.path.join(yapi.WEBROOT, 'static/attachment/cross-request-v2.1.zip'));
let dataBuffer = yapi.fs.readFileSync(yapi.path.join(yapi.WEBROOT, 'static/attachment/cross-request-v2.2.zip'));
ctx.set('Content-disposition', 'attachment; filename=' + filename);
ctx.set('Content-Type', 'application/zip');
ctx.body = dataBuffer;

Binary file not shown.