|
|
|
@ -13,7 +13,6 @@ import (
|
|
|
|
|
"github.com/astaxie/beego/httplib"
|
|
|
|
|
"github.com/rongcloud/server-sdk-go/v3/sdk"
|
|
|
|
|
"github.com/xormplus/xorm"
|
|
|
|
|
"net/http"
|
|
|
|
|
"strconv"
|
|
|
|
|
"strings"
|
|
|
|
|
)
|
|
|
|
@ -403,30 +402,7 @@ func SaveGroup(groupName string, personIdCookie string, identityIdCookie string,
|
|
|
|
|
req.Param("plat_type", "1")
|
|
|
|
|
req.Param("plat_id", "0")
|
|
|
|
|
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "person_id",
|
|
|
|
|
Value: personIdCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "identity_id",
|
|
|
|
|
Value: identityIdCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "token",
|
|
|
|
|
Value: tokenCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "q_access_token",
|
|
|
|
|
Value: qAccessTokenCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
CommonUtil.AddCookie(req, personIdCookie, identityIdCookie, tokenCookie, qAccessTokenCookie)
|
|
|
|
|
|
|
|
|
|
resStr, err := req.String()
|
|
|
|
|
if err != nil {
|
|
|
|
@ -455,30 +431,7 @@ func AddGroupMember(groupId string, personList string, personIdCookie string, id
|
|
|
|
|
req.Param("pids", personList)
|
|
|
|
|
req.Param("random_num", CommonUtil.GetSixRandom())
|
|
|
|
|
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "person_id",
|
|
|
|
|
Value: personIdCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "identity_id",
|
|
|
|
|
Value: identityIdCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "token",
|
|
|
|
|
Value: tokenCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
req.SetCookie(&http.Cookie{
|
|
|
|
|
Name: "q_access_token",
|
|
|
|
|
Value: qAccessTokenCookie,
|
|
|
|
|
Path: "/",
|
|
|
|
|
Domain: ConfigUtil.DsidealYyDomain,
|
|
|
|
|
})
|
|
|
|
|
CommonUtil.AddCookie(req, personIdCookie, identityIdCookie, tokenCookie, qAccessTokenCookie)
|
|
|
|
|
|
|
|
|
|
resStr, err := req.String()
|
|
|
|
|
if err != nil {
|
|
|
|
|