...
|
...
|
@@ -61,15 +61,15 @@ module.exports={ |
|
|
}, function (error1, httpResponse1, rebody1) {
|
|
|
if (!error1 && httpResponse1.statusCode == 200) {
|
|
|
userInfo.menu = Utils.createrMenus(JSON.parse(rebody1).data);
|
|
|
console.log("调用菜单");
|
|
|
console.log("调用菜单成功,开始调用权限:"+Iaccount.allRight);
|
|
|
//调用权限
|
|
|
request({
|
|
|
url: Iaccount.allRight,
|
|
|
form: '[false]'
|
|
|
}, function (error2, httpResponse2, rebody2) {
|
|
|
|
|
|
if (!error2 && httpResponse2.statusCode == 200) {
|
|
|
console.log("调用权限",rebody2);
|
|
|
console.log("调用权限"+rebody2);
|
|
|
if (!error2 && httpResponse2.statusCode == 200&&rebody2) {
|
|
|
|
|
|
userInfo.right = {};
|
|
|
JSON.parse(rebody2).data.forEach(function (data) {
|
|
|
if (data.platform_id == Iaccount.WEBSITE) {
|
...
|
...
|
|