Browse Source

修改绑定第三方参数

master v0.2.1
guzeng 3 years ago
parent
commit
5c846bddea
2 changed files with 10 additions and 6 deletions
  1. +6
    -4
      common.go
  2. +4
    -2
      third.client.go

+ 6
- 4
common.go View File

@ -9,10 +9,12 @@ type Req struct {
type BindThirdReq struct {
Req
Userid string
Type string
Openid string
Unionid string
Userid string
Platform string
Openid string
Openname string
Unionid string
Avatar string
}
type Res struct {


+ 4
- 2
third.client.go View File

@ -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)


Loading…
Cancel
Save