Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wx
yanxuan-wx-store-sharer
Commits
45cf8fd2
Commit
45cf8fd2
authored
May 16, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客分佣单入库
parent
58a19a61
Pipeline
#75666
passed with stages
in 1 minute 1 second
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
47 deletions
+22
-47
RestTemplateHandler.java
...store/sharer/integration/handler/RestTemplateHandler.java
+4
-1
WeChatRestTemplateHandler.java
...sharer/integration/handler/WeChatRestTemplateHandler.java
+4
-0
WeChatCommissionOrderDetailRequest.java
...tion/handler/impl/WeChatCommissionOrderDetailRequest.java
+1
-5
WeChatCommissionOrderListRequest.java
...ration/handler/impl/WeChatCommissionOrderListRequest.java
+1
-5
WeChatShopSetSharerCommissionRequest.java
...on/handler/impl/WeChatShopSetSharerCommissionRequest.java
+3
-9
WeChatShopSetSharerProductCommissionRequest.java
...ler/impl/WeChatShopSetSharerProductCommissionRequest.java
+3
-9
WeChatShopSharerListRequest.java
...integration/handler/impl/WeChatShopSharerListRequest.java
+3
-9
WeChatShopSharerRegisterBindRequest.java
...ion/handler/impl/WeChatShopSharerRegisterBindRequest.java
+3
-9
No files found.
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/RestTemplateHandler.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.common.exception.BizException
;
import
com.netease.yanxuan.wx.store.sharer.common.exception.BizException
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RestTemplateClient
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RestTemplateClient
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
...
@@ -19,15 +20,17 @@ import org.springframework.stereotype.Service;
...
@@ -19,15 +20,17 @@ import org.springframework.stereotype.Service;
public
class
RestTemplateHandler
{
public
class
RestTemplateHandler
{
private
final
RestTemplateClient
restTemplateClient
;
private
final
RestTemplateClient
restTemplateClient
;
/**
/**
* 执行操作
* 执行操作
*/
*/
public
<
T
,
R
>
R
execute
(
String
url
,
HttpMethod
method
,
T
params
,
Class
<
R
>
resType
)
{
public
<
T
,
R
>
R
execute
(
String
url
,
HttpMethod
method
,
T
params
,
Class
<
R
>
resType
)
{
try
{
try
{
log
.
info
(
"[op:RestTemplateHandler.execute] url:{} params:{}"
,
url
,
JSONObject
.
toJSONString
(
params
));
String
resultJson
=
restTemplateClient
.
execute
(
url
,
method
,
params
);
String
resultJson
=
restTemplateClient
.
execute
(
url
,
method
,
params
);
log
.
info
(
"[op:RestTemplateHandler.execute] result:{}"
,
resultJson
);
return
JSON
.
parseObject
(
resultJson
,
resType
);
return
JSON
.
parseObject
(
resultJson
,
resType
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"[op:RestTemplateHandler.execute] is error"
,
e
);
throw
new
BizException
(
e
);
throw
new
BizException
(
e
);
}
}
}
}
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/WeChatRestTemplateHandler.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.common.exception.WeChatException
;
import
com.netease.yanxuan.wx.store.sharer.common.exception.WeChatException
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RedisClient
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RedisClient
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RestTemplateClient
;
import
com.netease.yanxuan.wx.store.sharer.common.handler.RestTemplateClient
;
...
@@ -30,9 +31,12 @@ public class WeChatRestTemplateHandler {
...
@@ -30,9 +31,12 @@ public class WeChatRestTemplateHandler {
public
<
T
,
R
extends
WeChatCoreVO
>
R
execute
(
String
url
,
HttpMethod
method
,
T
params
,
Class
<
R
>
resType
)
{
public
<
T
,
R
extends
WeChatCoreVO
>
R
execute
(
String
url
,
HttpMethod
method
,
T
params
,
Class
<
R
>
resType
)
{
R
result
;
R
result
;
try
{
try
{
log
.
info
(
"[op:WeChatRestTemplateHandler.execute] url:{} params:{}"
,
url
,
JSONObject
.
toJSONString
(
params
));
String
resultJson
=
restTemplateClient
.
execute
(
url
,
method
,
params
);
String
resultJson
=
restTemplateClient
.
execute
(
url
,
method
,
params
);
log
.
info
(
"[op:WeChatRestTemplateHandler.execute] result:{}"
,
resultJson
);
result
=
JSON
.
parseObject
(
resultJson
,
resType
);
result
=
JSON
.
parseObject
(
resultJson
,
resType
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"[op:WeChatRestTemplateHandler.execute] is error"
,
e
);
throw
new
WeChatException
(
e
);
throw
new
WeChatException
(
e
);
}
}
if
(
StringUtils
.
isNotBlank
(
result
.
getErrcode
())
if
(
StringUtils
.
isNotBlank
(
result
.
getErrcode
())
...
...
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatCommissionOrderDetailRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -46,10 +45,7 @@ public class WeChatCommissionOrderDetailRequest implements IWeChatRequest {
...
@@ -46,10 +45,7 @@ public class WeChatCommissionOrderDetailRequest implements IWeChatRequest {
.
order_id
(
orderId
)
.
order_id
(
orderId
)
.
sku_id
(
skuId
)
.
sku_id
(
skuId
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatCommissionOrderDetailRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
WeChatCommissionOrderDetailVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCommissionOrderDetailVO
.
class
);
params
,
WeChatCommissionOrderDetailVO
.
class
);
log
.
info
(
"[op:WeChatCommissionOrderDetailRequest.res] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatCommissionOrderListRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -49,10 +48,7 @@ public class WeChatCommissionOrderListRequest implements IWeChatRequest {
...
@@ -49,10 +48,7 @@ public class WeChatCommissionOrderListRequest implements IWeChatRequest {
.
next_key
(
nextKey
)
.
next_key
(
nextKey
)
.
page_size
(
pageSize
)
.
page_size
(
pageSize
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatCommissionOrderListRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
WeChatCommissionOrderListVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCommissionOrderListVO
.
class
);
params
,
WeChatCommissionOrderListVO
.
class
);
log
.
info
(
"[op:WeChatCommissionOrderListRequest.res] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSetSharerCommissionRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -12,9 +8,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplat
...
@@ -12,9 +8,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplat
import
com.netease.yanxuan.wx.store.sharer.integration.meta.enums.CommissionTypeEnum
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.enums.CommissionTypeEnum
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSetSharerCommissionBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSetSharerCommissionBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatCoreVO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatCoreVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
/**
/**
* @Description 设置推客的分佣比例信息
* @Description 设置推客的分佣比例信息
...
@@ -51,9 +48,6 @@ public class WeChatShopSetSharerCommissionRequest implements IWeChatRequest {
...
@@ -51,9 +48,6 @@ public class WeChatShopSetSharerCommissionRequest implements IWeChatRequest {
.
commission_type
(
CommissionTypeEnum
.
PLATFORM
.
getCode
())
.
commission_type
(
CommissionTypeEnum
.
PLATFORM
.
getCode
())
.
commission_ratio
(
commissionRatio
)
.
commission_ratio
(
commissionRatio
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatShopSetSharerCommissionRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCoreVO
.
class
);
WeChatCoreVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCoreVO
.
class
);
log
.
info
(
"[op:WeChatShopSetSharerCommissionRequest.handle] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSetSharerProductCommissionRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSetSharerProductCommissionBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSetSharerProductCommissionBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatCoreVO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatCoreVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
/**
/**
* @Description 设置推客的单个商品的分佣比例信息
* @Description 设置推客的单个商品的分佣比例信息
...
@@ -50,9 +47,6 @@ public class WeChatShopSetSharerProductCommissionRequest implements IWeChatReque
...
@@ -50,9 +47,6 @@ public class WeChatShopSetSharerProductCommissionRequest implements IWeChatReque
.
product_id
(
productId
)
.
product_id
(
productId
)
.
commission_ratio
(
commissionRatio
)
.
commission_ratio
(
commissionRatio
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatShopSetSharerProductCommissionRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCoreVO
.
class
);
WeChatCoreVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatCoreVO
.
class
);
log
.
info
(
"[op:WeChatShopSetSharerProductCommissionRequest.handle] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSharerListRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSharerListBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSharerListBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatSharerListVO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatSharerListVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
/**
/**
* @Description 获取机构绑定的推客信息
* @Description 获取机构绑定的推客信息
...
@@ -50,9 +47,6 @@ public class WeChatShopSharerListRequest implements IWeChatRequest {
...
@@ -50,9 +47,6 @@ public class WeChatShopSharerListRequest implements IWeChatRequest {
.
next_key
(
nextKey
)
.
next_key
(
nextKey
)
.
page_size
(
pageSize
)
.
page_size
(
pageSize
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatShopSharerListRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatSharerListVO
.
class
);
WeChatSharerListVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatSharerListVO
.
class
);
log
.
info
(
"[op:WeChatShopSharerListRequest.res] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
yanxuan-wx-store-sharer-integration/src/main/java/com/netease/yanxuan/wx/store/sharer/integration/handler/impl/WeChatShopSharerRegisterBindRequest.java
View file @
45cf8fd2
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
package
com
.
netease
.
yanxuan
.
wx
.
store
.
sharer
.
integration
.
handler
.
impl
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.config.WeChatConfig
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.constant.WeChatApi
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
import
com.netease.yanxuan.wx.store.sharer.integration.core.WeChatContextHolder
;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
...
@@ -11,9 +7,10 @@ import com.netease.yanxuan.wx.store.sharer.integration.handler.IWeChatRequest;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.handler.WeChatRestTemplateHandler
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSharerRegisterBindBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.bo.WeChatSharerRegisterBindBO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatSharerRegisterBindVO
;
import
com.netease.yanxuan.wx.store.sharer.integration.meta.model.vo.WeChatSharerRegisterBindVO
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.stereotype.Service
;
/**
/**
* @Description 微信凭证请求
* @Description 微信凭证请求
...
@@ -49,9 +46,6 @@ public class WeChatShopSharerRegisterBindRequest implements IWeChatRequest {
...
@@ -49,9 +46,6 @@ public class WeChatShopSharerRegisterBindRequest implements IWeChatRequest {
.
is_simple_register
(
true
)
.
is_simple_register
(
true
)
.
sharer_openid
(
sharerOpenid
)
.
sharer_openid
(
sharerOpenid
)
.
build
();
.
build
();
log
.
info
(
"[op:WeChatShopSharerRegisterBindRequest.handle] requestParam={}"
,
JSONObject
.
toJSONString
(
params
));
return
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatSharerRegisterBindVO
.
class
);
WeChatSharerRegisterBindVO
res
=
weChatRestTemplateHandler
.
execute
(
getRequestUrl
(),
getRequestMethod
(),
params
,
WeChatSharerRegisterBindVO
.
class
);
log
.
info
(
"[op:WeChatShopSharerRegisterBindRequest.handle] res={}"
,
JSONObject
.
toJSONString
(
res
));
return
res
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment