接口地址: https://doc.youzanyun.com/detail/API/0/3334API名称:获取买家优惠券详情
请求:{"aPIParams":{"coupon_id":18789010589,"coupon_type":0},"gateway":"https://open.youzanyun.com","headers":{"X-Cat-Trace":"{\"_catRootMessageId\":\"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e\",\"_catParentMessageId\":\"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e\"}"},"httpMethod":"POST","name":"youzan.ump.voucher.query.detail","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_0.model.YouzanUmpVoucherQueryDetailParams","version":"1.0.0"}
返回:{"code":200,"data":{"activity_id":30665711,"denomination":10000,"is_sync_card":0,"kdt_id":105481348,"preferential_mode":1,"send_at":1726320592000,"send_source":"scrm_level","status":3,"user_identity":{"has_bound_mobile":false,"mobile":"17685112945","yz_open_id":19539895146},"valid_end_time":1728835199000,"valid_start_time":1726243200000,"voucher_identity":{"coupon_id":18789010589,"coupon_type":0}},"message":"successful","success":true,"trace_id":"zan-open-sdk-3f56c1bf-fa40-45cb-b4bc-8506766e314e"}
此时查询出来的"yz_open_id":19539895146,就很诡异,跟平常长得不太一样。于是我用"mobile":"17685112945" 这个手机号去查询用户信息,
接口地址:https://doc.youzanyun.com/detail/API/0/2193
API名称:用户查询接口
sendUsersInfoQuery通过手机号查询该用户;请求:{"aPIParams":{"mobile":"17685112945"},"gateway":"https://open.youzanyun.com","headers":{"X-Cat-Trace":"{\"_catRootMessageId\":\"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab\",\"_catParentMessageId\":\"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab\"}"},"httpMethod":"POST","name":"youzan.users.info.query","oAuthType":"TOKEN","paramModelClass":"com.youzan.cloud.open.sdk.gen.v1_0_1.model.YouzanUsersInfoQueryParams","version":"1.0.1"}
sendUsersInfoQuery通过手机号查询该用户;返回:{"code":200,"data":{"latest_info":{"avatar":"http://wx.qlogo.cn/mmhead/vPjficwtgTJBvNqsQtoN2FnjnvaGsvT344TibdrSic7aiagCzIcKj8dx4xmQ0ibyKtvg7IwGppfZrwYc/0","nick_name":"$sch48Lxc1+A3n+AjU7w+kg==$1$"},"user_list":[{"mobile_info":{"countryCode":"+86","mobile":"$ABuSRWEb+45j1kzGcROBSw==$1$"},"primitive_info":{"avatar":"http://wx.qlogo.cn/mmhead/vPjficwtgTJBvNqsQtoN2FnjnvaGsvT344TibdrSic7aiagCzIcKj8dx4xmQ0ibyKtvg7IwGppfZrwYc/0","city":"","country":"","created_time":1720918803000,"gender":0,"nick_name":"$sch48Lxc1+A3n+AjU7w+kg==$1$","platform_type":0,"province":"","updated_time":1720918803000,"yz_open_id":"83183trM1261970458589278208"}}]},"message":"successful","success":true,"trace_id":"zan-open-sdk-409baedb-e239-4ec8-83d6-038388db45ab"}
而此时他的yzopenid = 83183trM1261970458589278208 ,所以你们给个解释吧
|