...
|
...
|
@@ -86,9 +86,10 @@ module.exports = { |
|
|
var errcallback = function (err) {
|
|
|
return callback(err, result);
|
|
|
}
|
|
|
//promise.all(Ilogin,allRight,sessionAsync).then(a,b,c);
|
|
|
|
|
|
common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) {
|
|
|
var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"];
|
|
|
|
|
|
userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]};
|
|
|
allRes.data.forEach(function (data) {
|
|
|
if (data.platform_id == Iaccount.WEBSITE) {
|
...
|
...
|
|