Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-yunqueyilian
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.wechat
pica-cloud-yunqueyilian
提交
fa736dca
提交
fa736dca
编写于
8月 15, 2018
作者:
chenzhehao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微信菜单修改
上级
88b0ef71
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
10 行删除
+9
-10
App.java
...n/java/com/pica/cloud/wechat/yunqueyilian/server/App.java
+2
-1
MenuManagerServiceImpl.java
...queyilian/server/service/impl/MenuManagerServiceImpl.java
+5
-5
bootstrap-test1.properties
server/src/main/resources/bootstrap-test1.properties
+2
-4
未找到文件。
server/src/main/java/com/pica/cloud/wechat/yunqueyilian/server/App.java
浏览文件 @
fa736dca
...
@@ -9,7 +9,8 @@ import org.springframework.cloud.netflix.feign.EnableFeignClients;
...
@@ -9,7 +9,8 @@ import org.springframework.cloud.netflix.feign.EnableFeignClients;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@EnableCircuitBreaker
@EnableCircuitBreaker
@SpringBootApplication
(
scanBasePackages
=
"com.pica.cloud"
)
//@SpringBootApplication(scanBasePackages = "com.pica.cloud")
@SpringBootApplication
@EnableDiscoveryClient
@EnableDiscoveryClient
@EnableSwagger2
@EnableSwagger2
@EnableFeignClients
@EnableFeignClients
...
...
server/src/main/java/com/pica/cloud/wechat/yunqueyilian/server/service/impl/MenuManagerServiceImpl.java
浏览文件 @
fa736dca
...
@@ -23,8 +23,8 @@ public class MenuManagerServiceImpl {
...
@@ -23,8 +23,8 @@ public class MenuManagerServiceImpl {
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
MenuManagerServiceImpl
.
class
);
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
MenuManagerServiceImpl
.
class
);
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
CloudPropertiesUtil
.
read
(
"dev"
);
//
CloudPropertiesUtil.read("dev");
//
CloudPropertiesUtil.read("pro");
CloudPropertiesUtil
.
read
(
"pro"
);
AccessToken
accessToken
=
WeChatToolUtil
.
getAccessToken
(
CloudPropertiesUtil
.
getValue
(
"AppID"
),
CloudPropertiesUtil
.
getValue
(
"AppSecret"
));
AccessToken
accessToken
=
WeChatToolUtil
.
getAccessToken
(
CloudPropertiesUtil
.
getValue
(
"AppID"
),
CloudPropertiesUtil
.
getValue
(
"AppSecret"
));
Boolean
flag
=
WeChatToolUtil
.
createMenu
(
getMenu
(),
accessToken
.
getAccess_token
());
Boolean
flag
=
WeChatToolUtil
.
createMenu
(
getMenu
(),
accessToken
.
getAccess_token
());
if
(
flag
)
{
if
(
flag
)
{
...
@@ -57,20 +57,20 @@ public class MenuManagerServiceImpl {
...
@@ -57,20 +57,20 @@ public class MenuManagerServiceImpl {
CommonButton
btn31
=
new
CommonButton
();
CommonButton
btn31
=
new
CommonButton
();
btn31
.
setName
(
"绑定个人信息"
);
btn31
.
setName
(
"绑定个人信息"
);
btn31
.
setType
(
"view"
);
btn31
.
setType
(
"view"
);
String
url31
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/
index.html#/
goBind"
,
"UTF-8"
);
String
url31
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/goBind"
,
"UTF-8"
);
btn31
.
setUrl
(
url31
+
utl_end
);
btn31
.
setUrl
(
url31
+
utl_end
);
CommonButton
btn32
=
new
CommonButton
();
CommonButton
btn32
=
new
CommonButton
();
btn32
.
setName
(
"门诊预约"
);
btn32
.
setName
(
"门诊预约"
);
btn32
.
setType
(
"view"
);
btn32
.
setType
(
"view"
);
String
url32
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/
index.html#/
applyIndex"
,
"UTF-8"
);
String
url32
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/applyIndex"
,
"UTF-8"
);
btn32
.
setUrl
(
url32
+
utl_end
);
btn32
.
setUrl
(
url32
+
utl_end
);
CommonButton
btn33
=
new
CommonButton
();
CommonButton
btn33
=
new
CommonButton
();
btn33
.
setName
(
"随访记录"
);
btn33
.
setName
(
"随访记录"
);
btn33
.
setType
(
"view"
);
btn33
.
setType
(
"view"
);
String
url33
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/
index.html#/
followUp"
,
"UTF-8"
);
String
url33
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid="
+
WeChatConstants
.
APP_ID
+
"&redirect_uri="
+
URLEncoder
.
encode
(
"https://test1-yunqueyilian.yunqueyi.com/followUp"
,
"UTF-8"
);
btn33
.
setUrl
(
url33
+
utl_end
);
btn33
.
setUrl
(
url33
+
utl_end
);
...
...
server/src/main/resources/bootstrap-test1.properties
浏览文件 @
fa736dca
...
@@ -25,10 +25,8 @@ spring.rabbitmq.username=appuser
...
@@ -25,10 +25,8 @@ spring.rabbitmq.username=appuser
spring.rabbitmq.password
=
AqLfvyWOvLQEUzdI
spring.rabbitmq.password
=
AqLfvyWOvLQEUzdI
#微信登录信息
#微信登录信息
#AppID=wx1ee39338694703b0
AppID
=
wx1ee39338694703b0
#AppSecret=69e2c741d0cf8fd7eb8877ab9f3a236b
AppSecret
=
69e2c741d0cf8fd7eb8877ab9f3a236b
AppID
=
wxcf79dbdc24cb684b
AppSecret
=
febe33eec4d0c05d62a2393be35c35c4
#local settings
#local settings
feign.hystrix.enabled
=
true
feign.hystrix.enabled
=
true
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录