|
@@ -2,9 +2,12 @@ package front
|
|
|
|
|
|
import (
|
|
|
. "api"
|
|
|
+ "jfw/config"
|
|
|
"jfw/public"
|
|
|
"log"
|
|
|
+ "net/http"
|
|
|
qutil "qfw/util"
|
|
|
+ "qfw/util/usercenter"
|
|
|
"time"
|
|
|
|
|
|
"github.com/go-xweb/xweb"
|
|
@@ -118,11 +121,16 @@ func LogOffAppUser(user_id, cause string) bool {
|
|
|
_id, _ := primitive.ObjectIDFromHex(user_id)
|
|
|
if mongodb.Del("user", map[string]interface{}{
|
|
|
"_id": _id,
|
|
|
- // "_id": bson.ObjectIdHex(ok),
|
|
|
}) {
|
|
|
+ //删除用户中台
|
|
|
+ ck := &http.Cookie{}
|
|
|
+ base_userid_del := usercenter.GetBaseUserId(mongodb, user_id)
|
|
|
+ usercenter.PostUserCenter(qutil.ObjToString(config.Sysconfig["userCenterApi"])+usercenter.UserCenterDelete, usercenter.ContentType_Json, user_id, map[string]interface{}{
|
|
|
+ "appid": "10000",
|
|
|
+ "id": base_userid_del,
|
|
|
+ }, ck)
|
|
|
return true
|
|
|
}
|
|
|
- // return true
|
|
|
}
|
|
|
return false
|
|
|
}
|