Authored by 沈志敏

活动模版

1 'use strict'; 1 'use strict';
2 -const activeapi = global.yoho.ActiveAPI;  
3 const api = global.yoho.API; 2 const api = global.yoho.API;
4 const helpers = global.yoho.helpers; 3 const helpers = global.yoho.helpers;
5 4
@@ -44,7 +43,7 @@ module.exports = { @@ -44,7 +43,7 @@ module.exports = {
44 return Promise.resolve({}); 43 return Promise.resolve({});
45 } 44 }
46 45
47 - let data = yield activeapi.get('', { 46 + let data = yield api.get('', {
48 method: 'app.activity.template', 47 method: 'app.activity.template',
49 activity_id: code 48 activity_id: code
50 }); 49 });