Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-service
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-service
Commits
340cece5
提交
340cece5
authored
3月 07, 2025
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、微信小程序appId\appsecret从后台获取;2、计划列表按日期(同日期按打卡时间)排序
上级
35a08eb2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
56 行增加
和
10 行删除
+56
-10
MiappInfoController.java
...lu/promotion/controller/user/tem/MiappInfoController.java
+30
-0
TemporaryInfoQueryController.java
...ion/controller/user/tem/TemporaryInfoQueryController.java
+1
-1
TemporaryActivityReportedDaoImpl.java
...n/activity/dao/impl/TemporaryActivityReportedDaoImpl.java
+1
-2
ActivityPlanInfoDaoImpl.java
...main/activityplanv2/dao/impl/ActivityPlanInfoDaoImpl.java
+1
-1
TencentUtils.java
...ain/java/com/wangxiaolu/promotion/utils/TencentUtils.java
+14
-2
application-dev.yml
src/main/resources/application-dev.yml
+5
-0
WeChatUserCoreControllerTest.java
...otion/controller/wechat/WeChatUserCoreControllerTest.java
+2
-2
WeChatUserQueryControllerTest.java
...tion/controller/wechat/WeChatUserQueryControllerTest.java
+2
-2
没有找到文件。
src/main/java/com/wangxiaolu/promotion/controller/user/tem/MiappInfoController.java
0 → 100644
浏览文件 @
340cece5
package
com
.
wangxiaolu
.
promotion
.
controller
.
user
.
tem
;
import
com.wangxiaolu.promotion.result.basedata.R
;
import
com.wangxiaolu.promotion.utils.TencentUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author : liqiulin
* @date : 2025-03-07 13
* @describe :
*/
@RestController
@RequestMapping
(
"/wechat/miniapp/"
)
public
class
MiappInfoController
{
@Autowired
private
TencentUtils
tencentUtils
;
/**
* 获取小程序 - 小卤通信息
* @return
*/
@GetMapping
(
"/xlt"
)
public
R
getXLT
()
{
return
R
.
success
(
tencentUtils
.
getXltMini
());
}
}
src/main/java/com/wangxiaolu/promotion/controller/user/tem/
t
emporaryInfoQueryController.java
→
src/main/java/com/wangxiaolu/promotion/controller/user/tem/
T
emporaryInfoQueryController.java
浏览文件 @
340cece5
...
@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/user/wechat/query"
)
@RequestMapping
(
"/user/wechat/query"
)
public
class
t
emporaryInfoQueryController
{
public
class
T
emporaryInfoQueryController
{
@Autowired
@Autowired
private
WeChatUserQueryService
weChatUserQueryService
;
private
WeChatUserQueryService
weChatUserQueryService
;
...
...
src/main/java/com/wangxiaolu/promotion/domain/activity/dao/impl/TemporaryActivityReportedDaoImpl.java
浏览文件 @
340cece5
...
@@ -2,7 +2,6 @@ package com.wangxiaolu.promotion.domain.activity.dao.impl;
...
@@ -2,7 +2,6 @@ package com.wangxiaolu.promotion.domain.activity.dao.impl;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.druid.util.StringUtils
;
import
com.alibaba.druid.util.StringUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.wangxiaolu.promotion.common.enums.StatusType
;
import
com.wangxiaolu.promotion.common.enums.StatusType
;
...
@@ -52,7 +51,7 @@ public class TemporaryActivityReportedDaoImpl implements TemporaryActivityReport
...
@@ -52,7 +51,7 @@ public class TemporaryActivityReportedDaoImpl implements TemporaryActivityReport
}
}
/**
/**
* 分
布
查询数据
* 分
页
查询数据
*/
*/
@Override
@Override
public
void
findPage
(
TemporaryActivityWrapper
taw
,
PageInfo
pageInfo
)
{
public
void
findPage
(
TemporaryActivityWrapper
taw
,
PageInfo
pageInfo
)
{
...
...
src/main/java/com/wangxiaolu/promotion/domain/activityplanv2/dao/impl/ActivityPlanInfoDaoImpl.java
浏览文件 @
340cece5
...
@@ -155,7 +155,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao {
...
@@ -155,7 +155,7 @@ public class ActivityPlanInfoDaoImpl implements ActivityPlanInfoDao {
qw
.
like
(
ActivityPlanInfoDo:
:
getStoreName
,
wrapper
.
getStoreNameLike
());
qw
.
like
(
ActivityPlanInfoDo:
:
getStoreName
,
wrapper
.
getStoreNameLike
());
}
}
qw
.
eq
(
ActivityPlanInfoDo:
:
getIsDelete
,
StatusType
.
VALID
.
getType
());
qw
.
eq
(
ActivityPlanInfoDo:
:
getIsDelete
,
StatusType
.
VALID
.
getType
());
qw
.
orderByDesc
(
ActivityPlanInfoDo:
:
getDate
);
qw
.
orderByDesc
(
ActivityPlanInfoDo:
:
getDate
,
ActivityPlanInfoDo:
:
getClockInTime
);
if
(
Objects
.
nonNull
(
wrapper
.
getLimitNum
())){
if
(
Objects
.
nonNull
(
wrapper
.
getLimitNum
())){
qw
.
last
(
" limit "
+
wrapper
.
getLimitNum
());
qw
.
last
(
" limit "
+
wrapper
.
getLimitNum
());
}
}
...
...
src/main/java/com/wangxiaolu/promotion/utils/TencentUtils.java
浏览文件 @
340cece5
package
com
.
wangxiaolu
.
promotion
.
utils
;
package
com
.
wangxiaolu
.
promotion
.
utils
;
import
com.wangxiaolu.promotion.exception.ParamException
;
import
com.wangxiaolu.promotion.result.basedata.RCode
;
import
com.tencentcloudapi.common.Credential
;
import
com.tencentcloudapi.common.Credential
;
import
com.tencentcloudapi.common.exception.TencentCloudSDKException
;
import
com.tencentcloudapi.common.exception.TencentCloudSDKException
;
import
com.tencentcloudapi.common.profile.ClientProfile
;
import
com.tencentcloudapi.common.profile.ClientProfile
;
...
@@ -10,11 +8,16 @@ import com.tencentcloudapi.sms.v20210111.SmsClient;
...
@@ -10,11 +8,16 @@ import com.tencentcloudapi.sms.v20210111.SmsClient;
import
com.tencentcloudapi.sms.v20210111.models.SendSmsRequest
;
import
com.tencentcloudapi.sms.v20210111.models.SendSmsRequest
;
import
com.tencentcloudapi.sms.v20210111.models.SendSmsResponse
;
import
com.tencentcloudapi.sms.v20210111.models.SendSmsResponse
;
import
com.tencentcloudapi.sms.v20210111.models.SendStatus
;
import
com.tencentcloudapi.sms.v20210111.models.SendStatus
;
import
com.wangxiaolu.promotion.exception.ParamException
;
import
com.wangxiaolu.promotion.result.basedata.RCode
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.groovy.util.Maps
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
/**
/**
* @author : liqiulin
* @author : liqiulin
* @date : 2024-04-15 15
* @date : 2024-04-15 15
...
@@ -48,6 +51,15 @@ public class TencentUtils {
...
@@ -48,6 +51,15 @@ public class TencentUtils {
@Value
(
"${tengxunyun.sms.overdue_long}"
)
@Value
(
"${tengxunyun.sms.overdue_long}"
)
private
long
overdueLong
;
private
long
overdueLong
;
// 小卤通信息
@Value
(
"${weixin.xlt_miniapp.app_id}"
)
private
String
xltAppId
;
@Value
(
"${weixin.xlt_miniapp.app_secret}"
)
private
String
xltAppSecret
;
public
Map
<
String
,
String
>
getXltMini
()
{
return
Maps
.
of
(
"appId"
,
xltAppId
,
"appSecret"
,
xltAppSecret
);
}
/**
/**
* 给指定手机号发送验证码
* 给指定手机号发送验证码
*
*
...
...
src/main/resources/application-dev.yml
浏览文件 @
340cece5
...
@@ -62,6 +62,11 @@ tengxunyun:
...
@@ -62,6 +62,11 @@ tengxunyun:
template_id_a
:
2127434
template_id_a
:
2127434
#验证码过期时间(分钟)
#验证码过期时间(分钟)
overdue_long
:
5
overdue_long
:
5
weixin
:
xlt_miniapp
:
app_id
:
wx5d89065bb4725557
app_secret
:
7395e91baf6b49ca9b84b1301989f77e
#qince:
#qince:
# open_api: https://openapi.region2.qince.com
# open_api: https://openapi.region2.qince.com
...
...
src/test/java/com/wangxiaolu/promotion/controller/wechat/WeChatUserCoreControllerTest.java
浏览文件 @
340cece5
...
@@ -2,7 +2,7 @@ package com.wangxiaolu.promotion.controller.wechat;
...
@@ -2,7 +2,7 @@ package com.wangxiaolu.promotion.controller.wechat;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.wangxiaolu.promotion.controller.user.tem.TemporaryInfoCoreController
;
import
com.wangxiaolu.promotion.controller.user.tem.TemporaryInfoCoreController
;
import
com.wangxiaolu.promotion.controller.user.tem.
t
emporaryInfoQueryController
;
import
com.wangxiaolu.promotion.controller.user.tem.
T
emporaryInfoQueryController
;
import
com.wangxiaolu.promotion.pojo.user.vo.WxTemporaryEnrollVo
;
import
com.wangxiaolu.promotion.pojo.user.vo.WxTemporaryEnrollVo
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -22,7 +22,7 @@ class WeChatUserCoreControllerTest {
...
@@ -22,7 +22,7 @@ class WeChatUserCoreControllerTest {
@Autowired
@Autowired
TemporaryInfoCoreController
weChatUserCoreController
;
TemporaryInfoCoreController
weChatUserCoreController
;
@Autowired
@Autowired
t
emporaryInfoQueryController
weChatUserQueryController
;
T
emporaryInfoQueryController
weChatUserQueryController
;
@Test
@Test
void
enrollUserInfo
()
{
void
enrollUserInfo
()
{
...
...
src/test/java/com/wangxiaolu/promotion/controller/wechat/WeChatUserQueryControllerTest.java
浏览文件 @
340cece5
package
com
.
wangxiaolu
.
promotion
.
controller
.
wechat
;
package
com
.
wangxiaolu
.
promotion
.
controller
.
wechat
;
import
com.wangxiaolu.promotion.controller.user.tem.
t
emporaryInfoQueryController
;
import
com.wangxiaolu.promotion.controller.user.tem.
T
emporaryInfoQueryController
;
import
com.wangxiaolu.promotion.pojo.user.vo.WxTemporaryLoginVo
;
import
com.wangxiaolu.promotion.pojo.user.vo.WxTemporaryLoginVo
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
...
@@ -18,7 +18,7 @@ import org.springframework.test.context.junit4.SpringRunner;
...
@@ -18,7 +18,7 @@ import org.springframework.test.context.junit4.SpringRunner;
class
WeChatUserQueryControllerTest
{
class
WeChatUserQueryControllerTest
{
@Autowired
@Autowired
t
emporaryInfoQueryController
weChatUserQueryController
;
T
emporaryInfoQueryController
weChatUserQueryController
;
@Test
@Test
void
temporaryLoginByPhoneAndOpenId
()
{
void
temporaryLoginByPhoneAndOpenId
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论