leon 4 年之前
父節點
當前提交
20f143970e

+ 9 - 1
src/main/java/com/mokamrp/privates/service/pangu/impl/PromoteCodeServiceImpl.java

@@ -10,6 +10,7 @@ import com.mokamrp.privates.service.pangu.DomainFirstService;
 import com.mokamrp.privates.service.pangu.DomainSecondService;
 import com.mokamrp.privates.service.pangu.PromoteCodeService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.mokamrp.privates.utils.sign.Aes;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.stereotype.Service;
@@ -46,7 +47,14 @@ public class PromoteCodeServiceImpl extends ServiceImpl<PromoteCodeMapper, Promo
         List<PromoteCodeVo> list = promoteCodeMapper.getlist(page,promoteCodeListHandle,deptId);
         Map<String,Object> res = new HashMap<>();
         for (PromoteCodeVo promoteCodeVo : list){
-            promoteCodeVo.setQrcode(promoteCodeVo.getId()+"/#/dispatch?promoteId=");
+            Integer promoteId = promoteCodeVo.getId();
+            String promoteIdAes;
+            try{
+                promoteIdAes = Aes.encryptAES(promoteId.toString());
+            }catch (Exception e){
+                promoteIdAes = promoteId.toString();
+            }
+            promoteCodeVo.setQrcode(promoteCodeVo.getDomain()+"/#/dispatch?promoteId="+promoteIdAes);
         }
         res.put("list",list);
         res.put("total",page.getTotal());

+ 4 - 0
src/main/resources/application-test.properties

@@ -70,6 +70,7 @@ xxl-sso.excluded.paths=/healthy,\
 #xxl.sso.redis.address=redis://xxl-sso:Jch9shshl@r-uf633f3f27aa2174pd.redis.rds.aliyuncs.com:6379/0
 xxl.sso.redis.address=redis://xxl-sso:MokaSapce666$%25_RediS@r-uf6727zrr24ioihy72pd.redis.rds.aliyuncs.com:23563/0
 menu.host=http://space-server-in-svc/space/menu/getMenuInterface?sysCode=1006&userId=
+
 #dataHub
 datahub.endpoint=https://dh-cn-shanghai.aliyuncs.com
 datahub.accessId=LTAI5tEWU1j9H2poG4zWgfEP
@@ -77,12 +78,15 @@ datahub.accessSecret=p9tVmeDeeEENKhfsBsSeYc0F0ggH5b
 datahub.topic=s_hera_api_external_user_test
 datahub.corpTopic=ods_hera_msv_corp_data
 datahub.project=hera
+
 es.host=es-cn-4591gc2fx0001549q.public.elasticsearch.aliyuncs.com
 es.username=elastic
 es.password=moka6_3moka
 es.port=9200
+
 #typer接口
 typer.url=http://new-typer-combine-svc/api
+
 #定时任务全局开关,线上环境需要开启
 cronjob.power=false