ljl-dsPurchaseOrder
wangchaoxu 1 year ago
parent 4d8a86f3a2
commit 279c29b92a

@ -50,7 +50,7 @@ public class ShopAuthCallbackService extends SPIBaseService implements Extension
String reqBody = req.getData().getBody();
String key = cloudAppSecret.replaceAll("-", "");
reqBody = SecurityTool.decryptDoudianCallback(reqBody, key);
log.info("receive callback body: ", reqBody);
log.info("receive callback body: " + reqBody);
JSONObject bodyObj = JSONObject.parseObject(reqBody);
Integer msgType = bodyObj.getInteger("msg_type");

@ -58,7 +58,7 @@ public class GetRecommendProductListService extends SPIBaseService implements Ex
List<Category> categoryList = categoryService.getAllLeafProductCatListFromTos(shopId.intValue(), false);
Collections.shuffle(categoryList);
if (ObjectUtil.isNotEmpty(dsCateLeafArray) && ObjectUtil.isNotEmpty(dsCateLeafArray)) {
if (ObjectUtil.isNotEmpty(dsCateLeafArray) && ObjectUtil.isNotEmpty(categoryList)) {
final int eachCateProductChooseCount = 15;
int categoryIndex = 0;
HashSet<String> sourceItemIdSet = new HashSet<>();

@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
public class CreateSyncCategoryQueueTimerService extends TimerBaseService implements ExtensionServiceHandler<ItemDTO, Ret> {
@Autowired
CreateSyncCategoryQueueTaskService createSyncCategoryQueueTaskService;
private CreateSyncCategoryQueueTaskService createSyncCategoryQueueTaskService;
@Override
public BaseResponse<Ret> handle(BaseRequest<ItemDTO> req) {

@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
public class SyncShopCategoryQueueTimerService extends TimerBaseService implements ExtensionServiceHandler<ItemDTO, Ret> {
@Autowired
SyncShopCategoryQueueTaskService syncShopCategoryQueueTaskService;
private SyncShopCategoryQueueTaskService syncShopCategoryQueueTaskService;
@Override
public BaseResponse<Ret> handle(BaseRequest<ItemDTO> req) {

@ -89,7 +89,7 @@ public class SecurityTool {
public static void main(String[] args) {
// String msgSecret = "rzYLiyrSFtW8vSQWrlRTtsSHcH6KZdJGEpCGNZRjNcdXrn1HR39YSMXhj7z36gbeHdqPqR2zbkzO2CMOJz6l1aDFX5ZYTYHsLAIdOyN3RyQYJDihcLzhlACdNf/fEf28srQI37N/7+gVwSApAmnvP7CvBg8X5Hb+2A2cK13jMT8GAskYsNieL982MMPiAZmAF8ktAqN2bLJo/IpxYrW+OXLudrRylWXeLa5fbqO+pZVAtItoGN995lf6iPF8JnWJpQaSBPVuUgU/6Ns5sFWl7A==";
String msgSecret = "rzYLiyrSFtW8vSQWrlRTtsSHcH6KZdJGEpCGNZRjNcdXrn1HR39YSMXhj7z36gbeHdqPqR2zbkzO2CMOJz6l1aDFX5ZYTYHsLAIdOyN3RyTiAMe+84MuHM3uxeNkW/JIxvG0fighkM9qD7AtihaXkyzm2EJbnIUO4O4kWmgJxiNDhfqndhNEK/zzTxWvrgIUlZ+cJNDGjiA7XOab5l105cSVdFmay9I74sH907Bg+jz7w8JDIy5hbAK7rphu1Bv9eVQr4ct4wazka/T1/U2AvA==";
String msgSecret = "rzYLiyrSFtW8vSQWrlRTtsSHcH6KZdJGEpCGNZRjNcdXrn1HR39YSMXhj7z36gbeHdqPqR2zbkzO2CMOJz6l1aDFX5ZYTYHsLAIdOyN3RyTiAMe+84MuHM3uxeNkW/JIKQHQ0OBWp23RHqn1mxKaiaij7cG+jkAC/nrQW027QRqWW+y74MK5v79h3ex4BvlIcPq6hALSMAso7pWuo7KTUjI+QRM8CBafWYNRzcYMl3jyEKZTozWHHKXb+aZMVcjS1hiNNTRTAfZWFfkutSk2kA==";
String appSecret = "4c927c89-d55c-42cf-805c-694269a4b165";
String key = appSecret.replaceAll("-", "");
String decrypt = decryptDoudianCallback(msgSecret,key);

Loading…
Cancel
Save