fix 商服弹窗只针对pine开放

master
luoyang 5 years ago
parent 1155160248
commit ff5a3cbc46

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.3.44</version> <version>1.3.49</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version> <jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -1578,17 +1578,14 @@ public class RetailAppServiceImp implements RetailAppService {
confirmNotice.put("type", "confirm_notice"); confirmNotice.put("type", "confirm_notice");
result.add(confirmNotice); result.add(confirmNotice);
JSONObject latestAct = appActService.getLatestWindowNotice(); JSONObject latestAct = appActService.getAppActPopup();
if (latestAct != null) { if (latestAct != null && clientId == 9) {
latestAct.put("id", latestAct.getString("act_id")); latestAct.put("id", latestAct.getString("act_id"));
if (latestAct.getIntValue("show_type") == 0) { latestAct.put("url", latestAct.getString("act_url"));
latestAct.put("url", latestAct.getString("act_url"));
}
latestAct.put("title", latestAct.getString("act_name")); latestAct.put("title", latestAct.getString("act_name"));
latestAct.put("img", latestAct.getString("window_img")); latestAct.put("img", latestAct.getString("act_img"));
latestAct.remove("act_id"); latestAct.remove("act_id");
latestAct.remove("act_name"); latestAct.remove("act_name");
latestAct.remove("window_img");
latestAct.remove("act_url"); latestAct.remove("act_url");
JSONObject act = new JSONObject(); JSONObject act = new JSONObject();
act.put("data", latestAct); act.put("data", latestAct);

@ -82,6 +82,7 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
|| StringUtils.isEmpty(svcInfo.getString("platform_pub_key")) || StringUtils.isEmpty("platform_pri_key")) { || StringUtils.isEmpty(svcInfo.getString("platform_pub_key")) || StringUtils.isEmpty("platform_pri_key")) {
throw new BadRequestException("this channel config is wrong"); throw new BadRequestException("this channel config is wrong");
} }
logger.debug("{} new services apply :{}", params.getString("signClient"),params.toJSONString());
String signa = params.getString("sign"); String signa = params.getString("sign");
params.remove("sign"); params.remove("sign");
params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField); params = JSONObject.parseObject(JSON.toJSONString(params), Feature.OrderedField);
@ -97,10 +98,14 @@ public class RetailRSvcServiceImpl implements RetailRSvcService {
String signPrice = "0"; String signPrice = "0";
String signRate = "0"; String signRate = "0";
if (params.get("signPrice") != null) { if (params.get("signPrice") != null) {
logger.debug("{} new services apply amount origin:{}", params.getString("signClient"),params.getString("signPrice"));
signPrice = decData(params.getString("signPrice"), key, svcInfo.getString("platform_pri_key")); signPrice = decData(params.getString("signPrice"), key, svcInfo.getString("platform_pri_key"));
logger.debug("{} new services apply amount now:{}", params.getString("signClient"),signPrice);
} }
if (params.get("signRate") != null) { if (params.get("signRate") != null) {
logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),params.getString("signRate"));
signRate = decData(params.getString("signRate"), key, svcInfo.getString("platform_pri_key")); signRate = decData(params.getString("signRate"), key, svcInfo.getString("platform_pri_key"));
logger.debug("{} new services apply rate origin:{}", params.getString("signClient"),signRate);
} }
JSONObject serviceApply = new JSONObject(); JSONObject serviceApply = new JSONObject();
serviceApply.put("apply_id", UUID.randomUUID().toString()); serviceApply.put("apply_id", UUID.randomUUID().toString());

@ -16,7 +16,8 @@
select * select *
from act_app_list from act_app_list
where is_valid = 1 where is_valid = 1
and expire_date &gt; #{now} and active_date &lt;=NOW()
and expire_date &gt; NOW()
order by create_time desc order by create_time desc
limit 1 limit 1
</select> </select>

Loading…
Cancel
Save