Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
5d7dab2b
提交
5d7dab2b
authored
7月 01, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
5010a14f
db525c32
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
73 行增加
和
24 行删除
+73
-24
develop.yml
.github/workflows/develop.yml
+27
-7
master.yml
.github/workflows/master.yml
+37
-7
CooperationController.java
...a/com/mmc/iuav/user/controller/CooperationController.java
+1
-1
CooperationServiceImpl.java
...om/mmc/iuav/user/service/impl/CooperationServiceImpl.java
+6
-6
application-local.yml
...cms-service-user/src/main/resources/application-local.yml
+1
-2
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
没有找到文件。
.github/workflows/develop.yml
浏览文件 @
5d7dab2b
...
...
@@ -31,15 +31,20 @@ jobs:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
WeChat Work notification by
text
-
name
:
WeChat Work notification by
markdown
uses
:
chf007/action-wechat-work@master
env
:
WECHAT_WORK_BOT_WEBHOOK
:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9be1b073-1760-442d-8e3d-faa0fd32ea16
with
:
msgtype
:
text
content
:
"
GitHub提交信息
\n
-
提交人:
${{github.actor}}
\n
-
提交信息:
${{
github.event.head_commit.message
}}
\n
-
提交到仓库:
${{github.repository}}
\n
-
提交到分支:
${{github.ref}}
\n
即将开始更新,请关注Argocd同步状态..."
#mentioned_list: '["@all"]'
#mentioned_mobile_list: '["@all"]'
msgtype
:
markdown
content
:
"
###
GitHub提交信息
\n
>
-
提交人:
${{github.actor}}
\n
>
-
提交信息:
${{
github.event.head_commit.message
}}
\n
>
-
提交到仓库:
${{github.repository}}
\n
>
-
提交到分支:
${{github.ref}}
\n
即将开始更新,请关注Argocd同步状态...
"
-
name
:
Set up JDK 8
uses
:
actions/setup-java@v1
...
...
@@ -73,4 +78,19 @@ jobs:
git config user.email "Chuck@users.noreply.github.com"
git remote set-url origin "$GITLAB_URL"
git commit -am "generated Image update"
git push origin develop
\ No newline at end of file
git push origin develop
-
name
:
Send Error Notification by WeChat
if
:
${{ failure() }}
run
:
|
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9be1b073-1760-442d-8e3d-faa0fd32ea16' -H 'Content-Type: application/json' -d '
{
"msgtype": "markdown",
"markdown": {
"content": "### GitHub构建并推送镜像失败 \n
> - 提交人: ${{github.actor}} \n
> - 提交信息: ${{github.event.head_commit.message}} \n
> - 提交到仓库: ${{github.repository}} \n
> - 提交到分支: ${{github.ref}} \n 请修复错误后重新提交...
"
}'
\ No newline at end of file
.github/workflows/master.yml
浏览文件 @
5d7dab2b
...
...
@@ -32,15 +32,20 @@ jobs:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
WeChat Work notification by
text
-
name
:
WeChat Work notification by
markdown
uses
:
chf007/action-wechat-work@master
env
:
WECHAT_WORK_BOT_WEBHOOK
:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9be1b073-1760-442d-8e3d-faa0fd32ea16
with
:
msgtype
:
text
content
:
"
GitHub提交信息
\n
-
提交人:
${{github.actor}}
\n
-
提交信息:
${{
github.event.head_commit.message
}}
\n
-
提交到仓库:
${{github.repository}}
\n
-
提交到分支:
${{github.ref}}
\n
即将开始更新,请关注Argocd同步状态..."
#mentioned_list: '["@all"]'
#mentioned_mobile_list: '["@all"]'
msgtype
:
markdown
content
:
"
###
GitHub提交信息
\n
>
-
提交人:
${{github.actor}}
\n
>
-
提交信息:
${{
github.event.head_commit.message
}}
\n
>
-
提交到仓库:
${{github.repository}}
\n
>
-
提交到分支:
${{github.ref}}
\n
即将开始更新,请关注Argocd同步状态...
"
-
name
:
Set up JDK 8
uses
:
actions/setup-java@v1
...
...
@@ -74,4 +79,29 @@ jobs:
git config user.email "Chuck@users.noreply.github.com"
git remote set-url origin "$GITLAB_URL"
git commit -am "generated Image update"
git push origin master
\ No newline at end of file
git push origin master
-
name
:
Send Error Notification by WeChat
if
:
${{ failure() }}
run
:
|
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9be1b073-1760-442d-8e3d-faa0fd32ea16' -H 'Content-Type: application/json' -d '
{
"msgtype": "markdown",
"markdown": {
"content": "### GitHub构建并推送镜像失败 \n
> - 提交人: ${{github.actor}} \n
> - 提交信息: ${{github.event.head_commit.message}} \n
> - 提交到仓库: ${{github.repository}} \n
> - 提交到分支: ${{github.ref}} \n 请修复错误后重新提交...
"
}'
#- name: Commit files
# run: |
# git config --local user.email "Chuck@users.noreply.github.com"
# git config --local user.name "Chuck"
# git commit -am "Image Update"
#- name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CooperationController.java
浏览文件 @
5d7dab2b
...
...
@@ -82,7 +82,7 @@ public class CooperationController extends BaseController {
@GetMapping
(
"approvalApplyTag"
)
public
ResultBody
approvalApplyTag
(
@RequestParam
(
value
=
"id"
)
Integer
id
,
@RequestParam
(
value
=
"status"
)
Boolean
status
)
{
return
ResultBody
.
success
(
cooperationService
.
approvalApplyTag
(
id
,
status
)
);
return
cooperationService
.
approvalApplyTag
(
id
,
status
);
}
@ApiOperation
(
value
=
"后台设置小程序用户标签"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CooperationServiceImpl.java
浏览文件 @
5d7dab2b
...
...
@@ -127,6 +127,7 @@ public class CooperationServiceImpl implements CooperationService {
return
ResultBody
.
success
(
userApplyTagDetailsVO
);
}
@Transactional
@Override
public
ResultBody
approvalApplyTag
(
Integer
id
,
Boolean
status
)
{
// 判断用户是否已经是该渠道
...
...
@@ -134,18 +135,17 @@ public class CooperationServiceImpl implements CooperationService {
int
count
=
cooperationDao
.
userTagInfo
(
userApplyTag
.
getCooperationTagId
(),
userApplyTag
.
getUserAccountId
());
if
(
count
==
0
)
{
if
(
status
)
{
cooperationDao
.
updateApplyTagStatus
(
id
,
1
);
if
(
status
)
{
cooperationDao
.
updateApplyTagStatus
(
id
,
1
);
if
(
count
==
0
){
// 审批通过往用户标签表中新增一条数据
UserTagDO
userTagDO
=
new
UserTagDO
();
userTagDO
.
setUserAccountId
(
userApplyTag
.
getUserAccountId
());
userTagDO
.
setCooperationTagId
(
userApplyTag
.
getCooperationTagId
());
cooperationDao
.
insertUserTag
(
userTagDO
);
}
else
{
cooperationDao
.
updateApplyTagStatus
(
id
,
2
);
}
return
ResultBody
.
success
();
}
else
{
cooperationDao
.
updateApplyTagStatus
(
id
,
2
);
}
return
ResultBody
.
success
();
}
...
...
csm-service/cms-service-user/src/main/resources/application-local.yml
浏览文件 @
5d7dab2b
...
...
@@ -10,8 +10,7 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
redis
:
database
:
1
host
:
r-wz9ke310fs684hacn1pd.redis.rds.aliyuncs.com
password
:
MMC@2022&REDIS
host
:
127.0.0.1
port
:
6379
#rabbitMQ
rabbitmq
:
...
...
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
5d7dab2b
...
...
@@ -18,4 +18,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/cms
newTag
:
4c9d44c0d2b2687d57491a54dcdf99ddff67a4c3
newTag
:
09419886c7020f6a51922ed3103025fdfb04dab7
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论