Authored by 李奇

onLogin接口支持动态appId

1 -import config from '../../config';  
2 import { api } from '../../common/api'; 1 import { api } from '../../common/api';
3 2
4 export default { 3 export default {
@@ -50,8 +49,7 @@ export default { @@ -50,8 +49,7 @@ export default {
50 data: { 49 data: {
51 method: 'wechat.smallProgram.onLogin', 50 method: 'wechat.smallProgram.onLogin',
52 jsCode: code, 51 jsCode: code,
53 - app_id: appId,  
54 - miniapp_type: config.mini_app_type 52 + appId
55 } 53 }
56 }); 54 });
57 }, 55 },