diff --git a/Debate_backend/.idea/compiler.xml b/Debate_backend/.idea/compiler.xml
index 08f0a45..8dbd22e 100644
--- a/Debate_backend/.idea/compiler.xml
+++ b/Debate_backend/.idea/compiler.xml
@@ -2,6 +2,7 @@
+
diff --git a/Debate_backend/.idea/misc.xml b/Debate_backend/.idea/misc.xml
index 9dc782b..fdafdfd 100644
--- a/Debate_backend/.idea/misc.xml
+++ b/Debate_backend/.idea/misc.xml
@@ -8,5 +8,5 @@
-
+
\ No newline at end of file
diff --git a/Debate_backend/.idea/vcs.xml b/Debate_backend/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/Debate_backend/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Debate_backend/src/main/java/com/learning/newdemo/service/impl/WxUserServiceImpl.java b/Debate_backend/src/main/java/com/learning/newdemo/service/impl/WxUserServiceImpl.java
index 492f7fa..db2950d 100644
--- a/Debate_backend/src/main/java/com/learning/newdemo/service/impl/WxUserServiceImpl.java
+++ b/Debate_backend/src/main/java/com/learning/newdemo/service/impl/WxUserServiceImpl.java
@@ -48,6 +48,9 @@ public class WxUserServiceImpl implements WxUserService {
// 获取openid
String openid = json.getString("openid");
+ System.out.println("url:"+url);
+ System.out.println("response:"+response.getBody());
+ System.out.println("json:"+json);
if (openid == null || openid.isEmpty()) {
log.error("获取openid失败: {}", json);
return null;
diff --git a/Debate_backend/src/main/resources/application.yml b/Debate_backend/src/main/resources/application.yml
index f544772..9cba36c 100644
--- a/Debate_backend/src/main/resources/application.yml
+++ b/Debate_backend/src/main/resources/application.yml
@@ -5,7 +5,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/wx_miniapp?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: root
- password: 1234
+ password: 123456
mybatis:
mapper-locations: classpath:mapper/*.xml
diff --git a/Debate_backend/target/classes/application.yml b/Debate_backend/target/classes/application.yml
index f544772..9cba36c 100644
--- a/Debate_backend/target/classes/application.yml
+++ b/Debate_backend/target/classes/application.yml
@@ -5,7 +5,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/wx_miniapp?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: root
- password: 1234
+ password: 123456
mybatis:
mapper-locations: classpath:mapper/*.xml
diff --git a/Debate_backend/target/classes/com/learning/newdemo/common/Result.class b/Debate_backend/target/classes/com/learning/newdemo/common/Result.class
index b4ef094..34dc566 100644
Binary files a/Debate_backend/target/classes/com/learning/newdemo/common/Result.class and b/Debate_backend/target/classes/com/learning/newdemo/common/Result.class differ
diff --git a/Debate_backend/target/classes/com/learning/newdemo/controller/WxLoginController.class b/Debate_backend/target/classes/com/learning/newdemo/controller/WxLoginController.class
index 13f32a4..b1f61a2 100644
Binary files a/Debate_backend/target/classes/com/learning/newdemo/controller/WxLoginController.class and b/Debate_backend/target/classes/com/learning/newdemo/controller/WxLoginController.class differ
diff --git a/Debate_backend/target/classes/com/learning/newdemo/entity/WxUser.class b/Debate_backend/target/classes/com/learning/newdemo/entity/WxUser.class
index e8c6d59..ee772e0 100644
Binary files a/Debate_backend/target/classes/com/learning/newdemo/entity/WxUser.class and b/Debate_backend/target/classes/com/learning/newdemo/entity/WxUser.class differ
diff --git a/Debate_backend/target/classes/com/learning/newdemo/service/impl/WxUserServiceImpl.class b/Debate_backend/target/classes/com/learning/newdemo/service/impl/WxUserServiceImpl.class
index a6554f9..982c563 100644
Binary files a/Debate_backend/target/classes/com/learning/newdemo/service/impl/WxUserServiceImpl.class and b/Debate_backend/target/classes/com/learning/newdemo/service/impl/WxUserServiceImpl.class differ
diff --git a/Debate_front/project.config.json b/Debate_front/project.config.json
index 6a57ff0..76458c0 100644
--- a/Debate_front/project.config.json
+++ b/Debate_front/project.config.json
@@ -1,4 +1,22 @@
{
"miniprogramRoot": "",
- "libVersion": "3.0.2"
-}
\ No newline at end of file
+ "libVersion": "3.0.2",
+ "appid": "wxdc5c8df2ec2453e4",
+ "compileType": "miniprogram",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ }
+ },
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ }
+}
\ No newline at end of file
diff --git a/Debate_front/project.private.config.json b/Debate_front/project.private.config.json
new file mode 100644
index 0000000..d6e9838
--- /dev/null
+++ b/Debate_front/project.private.config.json
@@ -0,0 +1,7 @@
+{
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "projectname": "Debate_front",
+ "setting": {
+ "compileHotReLoad": true
+ }
+}
\ No newline at end of file
diff --git a/database/database.sql b/database/database.sql
new file mode 100644
index 0000000..350ac16
--- /dev/null
+++ b/database/database.sql
@@ -0,0 +1,19 @@
+create database if not exists wx_miniapp default charset utf8mb4;
+
+use wx_miniapp;
+
+CREATE TABLE IF NOT EXISTS `wx_user` (
+ `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
+ `openid` varchar(100) NOT NULL COMMENT '微信openid',
+ `nickname` varchar(50) DEFAULT NULL COMMENT '昵称',
+ `avatar_url` varchar(500) DEFAULT NULL COMMENT '头像URL',
+ `gender` tinyint(4) DEFAULT NULL COMMENT '性别 0-未知 1-男 2-女',
+ `country` varchar(50) DEFAULT NULL COMMENT '国家',
+ `province` varchar(50) DEFAULT NULL COMMENT '省份',
+ `city` varchar(50) DEFAULT NULL COMMENT '城市',
+ `language` varchar(50) DEFAULT NULL COMMENT '语言',
+ `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+ `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `uk_openid` (`openid`) COMMENT 'openid唯一索引'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信用户表';
\ No newline at end of file