|
|
@ -5,7 +5,7 @@ package userrpc |
|
|
|
* 2021/04/05 |
|
|
|
* gz |
|
|
|
*/ |
|
|
|
func BindThird(site_id, dbname, _type, user_id, openid, unionid, url ...string) (*Res, error) { |
|
|
|
func BindThird(site_id, dbname, platform, user_id, openid, openname, unionid, avatar, url ...string) (*Res, error) { |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
if err != nil { |
|
|
@ -17,8 +17,10 @@ func BindThird(site_id, dbname, _type, user_id, openid, unionid, url ...string) |
|
|
|
data.SiteId = site_id |
|
|
|
data.Dbname = dbname |
|
|
|
data.Openid = openid |
|
|
|
data.Type = _type |
|
|
|
data.Openname = openname |
|
|
|
data.Platform = platform |
|
|
|
data.Unionid = unionid |
|
|
|
data.Avatar = avatar |
|
|
|
data.Userid = user_id |
|
|
|
|
|
|
|
data_json, err := json.Marshal(data) |
|
|
|