创建会员基于用户主档信息,需确保用户记录已创建(请求参数openId必须与创建用户时的openId保持一致) P.S. 不同租户下相同手机号将各自产生各自的租户会员记录(多个memberId),但易百会员为唯一记录(一个ebuyMemberId)
注意:为保证签名的一致性,返回报文中的content字段将以string形式的进行返回,例如:
{ "content": { "userId": 1, "userName": "Trump" } }
将返回为:
{ "content": "{\"userId\":1,\"userName\":\"Trump\"}" }
请求示例:
{ "uuid": "20210629-ixlbyfjxuamqfrsxetovgklcrjjmsrhd", "appId": "ebuydev100100100", "action": "createMemberByMobile", "timestamp": 1624944762, "signType": "sha256", "sign": "8201286538478570", "lang": "zh_CN", "content": { "clientType": "H5", "mobile": "18918988888", "openId": "18918988888" } }
返回示例:
{ "uuid": "20210629-ixlbyfjxuamqfrsxetovgklcrjjmsrhd", "action": "createMemberByMobile", "content": "{\"country\":\"\",\"gender\":\"Unknown\",\"city\":\"\",\"uuid\":\"20210629-lwtgqhejesjbyfybqetebvpcuvjsubni\",\"profilePhotoUrl\":\"\",\"createBy\":\"paas-gateway\",\"province\":\"\",\"appId\":\"ebuydev100100100\",\"memberSource\":\"ebuydev100100100\",\"memberId\":\"e352b0e072de7cd4672a2a93f961ce77\"}", "success": true, "errorCode": "", "errorMessage": "", "timestamp": 1624945127613, "sign": "3e1c74d67cb32c7a0592a5f9cb78cd5f5ead100d16f44b68da5691e12b6e472b", "signType": "sha256" }
No Comments