v2.2 正式发布,移除jpa升级后台为mytisplus
This commit is contained in:
15
.gitignore
vendored
15
.gitignore
vendored
@ -1,10 +1,7 @@
|
|||||||
### IDEA ###
|
*.classpath
|
||||||
.idea/*
|
*.project
|
||||||
*.iml
|
*.iml
|
||||||
*/target/*
|
*.factorypath
|
||||||
*/*.iml
|
target
|
||||||
/fx.jpg
|
.idea/
|
||||||
/poster.jpg
|
*.log
|
||||||
/simsunb.ttf
|
|
||||||
/spy.log
|
|
||||||
/Alibaba-PuHuiTi-Regular.otf
|
|
||||||
|
191
LICENSE
191
LICENSE
@ -1,191 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction, and
|
|
||||||
distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
|
||||||
owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all other entities
|
|
||||||
that control, are controlled by, or are under common control with that entity.
|
|
||||||
For the purposes of this definition, "control" means (i) the power, direct or
|
|
||||||
indirect, to cause the direction or management of such entity, whether by
|
|
||||||
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
||||||
permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications, including
|
|
||||||
but not limited to software source code, documentation source, and configuration
|
|
||||||
files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical transformation or
|
|
||||||
translation of a Source form, including but not limited to compiled object code,
|
|
||||||
generated documentation, and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
|
||||||
available under the License, as indicated by a copyright notice that is included
|
|
||||||
in or attached to the work (an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
|
||||||
is based on (or derived from) the Work and for which the editorial revisions,
|
|
||||||
annotations, elaborations, or other modifications represent, as a whole, an
|
|
||||||
original work of authorship. For the purposes of this License, Derivative Works
|
|
||||||
shall not include works that remain separable from, or merely link (or bind by
|
|
||||||
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including the original version
|
|
||||||
of the Work and any modifications or additions to that Work or Derivative Works
|
|
||||||
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
||||||
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
||||||
on behalf of the copyright owner. For the purposes of this definition,
|
|
||||||
"submitted" means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems, and
|
|
||||||
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
|
||||||
the purpose of discussing and improving the Work, but excluding communication
|
|
||||||
that is conspicuously marked or otherwise designated in writing by the copyright
|
|
||||||
owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
||||||
of whom a Contribution has been received by Licensor and subsequently
|
|
||||||
incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License.
|
|
||||||
|
|
||||||
Subject to the terms and conditions of this License, each Contributor hereby
|
|
||||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
||||||
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
||||||
Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License.
|
|
||||||
|
|
||||||
Subject to the terms and conditions of this License, each Contributor hereby
|
|
||||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
||||||
irrevocable (except as stated in this section) patent license to make, have
|
|
||||||
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
|
||||||
such license applies only to those patent claims licensable by such Contributor
|
|
||||||
that are necessarily infringed by their Contribution(s) alone or by combination
|
|
||||||
of their Contribution(s) with the Work to which such Contribution(s) was
|
|
||||||
submitted. If You institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
|
||||||
Contribution incorporated within the Work constitutes direct or contributory
|
|
||||||
patent infringement, then any patent licenses granted to You under this License
|
|
||||||
for that Work shall terminate as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution.
|
|
||||||
|
|
||||||
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
||||||
in any medium, with or without modifications, and in Source or Object form,
|
|
||||||
provided that You meet the following conditions:
|
|
||||||
|
|
||||||
You must give any other recipients of the Work or Derivative Works a copy of
|
|
||||||
this License; and
|
|
||||||
You must cause any modified files to carry prominent notices stating that You
|
|
||||||
changed the files; and
|
|
||||||
You must retain, in the Source form of any Derivative Works that You distribute,
|
|
||||||
all copyright, patent, trademark, and attribution notices from the Source form
|
|
||||||
of the Work, excluding those notices that do not pertain to any part of the
|
|
||||||
Derivative Works; and
|
|
||||||
If the Work includes a "NOTICE" text file as part of its distribution, then any
|
|
||||||
Derivative Works that You distribute must include a readable copy of the
|
|
||||||
attribution notices contained within such NOTICE file, excluding those notices
|
|
||||||
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
||||||
following places: within a NOTICE text file distributed as part of the
|
|
||||||
Derivative Works; within the Source form or documentation, if provided along
|
|
||||||
with the Derivative Works; or, within a display generated by the Derivative
|
|
||||||
Works, if and wherever such third-party notices normally appear. The contents of
|
|
||||||
the NOTICE file are for informational purposes only and do not modify the
|
|
||||||
License. You may add Your own attribution notices within Derivative Works that
|
|
||||||
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
|
||||||
provided that such additional attribution notices cannot be construed as
|
|
||||||
modifying the License.
|
|
||||||
You may add Your own copyright statement to Your modifications and may provide
|
|
||||||
additional or different license terms and conditions for use, reproduction, or
|
|
||||||
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
||||||
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
||||||
with the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions.
|
|
||||||
|
|
||||||
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
||||||
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
||||||
conditions of this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
|
||||||
any separate license agreement you may have executed with Licensor regarding
|
|
||||||
such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks.
|
|
||||||
|
|
||||||
This License does not grant permission to use the trade names, trademarks,
|
|
||||||
service marks, or product names of the Licensor, except as required for
|
|
||||||
reasonable and customary use in describing the origin of the Work and
|
|
||||||
reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
||||||
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
|
||||||
including, without limitation, any warranties or conditions of TITLE,
|
|
||||||
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
|
||||||
solely responsible for determining the appropriateness of using or
|
|
||||||
redistributing the Work and assume any risks associated with Your exercise of
|
|
||||||
permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability.
|
|
||||||
|
|
||||||
In no event and under no legal theory, whether in tort (including negligence),
|
|
||||||
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
||||||
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special, incidental,
|
|
||||||
or consequential damages of any character arising as a result of this License or
|
|
||||||
out of the use or inability to use the Work (including but not limited to
|
|
||||||
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
||||||
any and all other commercial damages or losses), even if such Contributor has
|
|
||||||
been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability.
|
|
||||||
|
|
||||||
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
||||||
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
||||||
other liability obligations and/or rights consistent with this License. However,
|
|
||||||
in accepting such obligations, You may act only on Your own behalf and on Your
|
|
||||||
sole responsibility, not on behalf of any other Contributor, and only if You
|
|
||||||
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason of your
|
|
||||||
accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following boilerplate
|
|
||||||
notice, with the fields enclosed by brackets "{}" replaced with your own
|
|
||||||
identifying information. (Don't include the brackets!) The text should be
|
|
||||||
enclosed in the appropriate comment syntax for the file format. We also
|
|
||||||
recommend that a file or class name and description of purpose be included on
|
|
||||||
the same "printed page" as the copyright notice for easier identification within
|
|
||||||
third-party archives.
|
|
||||||
|
|
||||||
Copyright 2018 Elune
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
89
README.md
89
README.md
@ -2,14 +2,16 @@
|
|||||||
|
|
||||||
|
|
||||||
#### 项目简介
|
#### 项目简介
|
||||||
yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2+Jpa+MybatisPlus+SpringSecurity+jwt+redis+Vue的前后端分离的商城系统, 包含商城、拼团、砍价、商户管理、 秒杀、优惠券、积分、分销、会员、充值、多门店等功能,更适合企业或个人二次开发;;
|
yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2+Jpa+MybatisPlus+SpringSecurity+jwt+redis+Vue的前后端分离的商城系统, 包含商城、拼团、砍价、商户管理、 秒杀、优惠券、积分、分销、会员、充值、到店核销等功能,更适合企业或个人二次开发;;
|
||||||
|
|
||||||
|
**开发文档** 【[查看文档](https://gitee.com/guchengwuyue/yshopmall/wikis/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83?sort_id=1718722)】
|
||||||
|
|
||||||
#### 体验地址(里面有演示地址与文档)
|
#### 体验地址
|
||||||
|
|
||||||
| | 官网文档地址 | https://www.yixiang.co |
|
| | 后台系统 | 前端(公众号+小程序(mpvue2.0),关注公众号即可体验公众号与小程序) |
|
||||||
|--- |--- | --- |
|
|--- |--- | --- |
|
||||||
|
| | https://www.yixiang.co |H5:https://h5.yixiang.co 测试号:hupeng/123456,也可以自行注册 |
|
||||||
|
| | 后台体验账号/密码:admin/123456 | 公众号: |
|
||||||
|
|
||||||
|
|
||||||
#### 项目源码
|
#### 项目源码
|
||||||
@ -19,19 +21,38 @@ yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2
|
|||||||
| 码云 | https://gitee.com/guchengwuyue/yshopmall | https://gitee.com/guchengwuyue/yshopmall_qd |
|
| 码云 | https://gitee.com/guchengwuyue/yshopmall | https://gitee.com/guchengwuyue/yshopmall_qd |
|
||||||
| github | https://github.com/guchengwuyue/yshopmall |https://github.com/guchengwuyue/yshopmall_qd |
|
| github | https://github.com/guchengwuyue/yshopmall |https://github.com/guchengwuyue/yshopmall_qd |
|
||||||
|
|
||||||
|
#### 开源版本与VIP版本说明
|
||||||
|
|
||||||
|
### 开源版
|
||||||
|
1.包括整个商城系统后台、数据库
|
||||||
|
|
||||||
|
2.开源整个商城的管理后台(后台已经封装好了图片素材库、编辑器、配置等等组件), 它可以用于所有的Web应用程序,如网站商城管理后台,网站会员中心,
|
||||||
|
CMS,CRM,OA等等本版本本身属于独立后台商城管理系统;
|
||||||
|
|
||||||
|
3.可以个人、企业直接使用。
|
||||||
|
|
||||||
|
### VIP版
|
||||||
|
1.包括了开源版,还包括了移动端(H5+公众号)、小程序(mpvue2框架)、移动端API
|
||||||
|
|
||||||
|
2.本版本是演示的所有功能代码;
|
||||||
|
|
||||||
|
3.加入VIP、享有后续所有功能免费升级及其技术支持等。
|
||||||
|
|
||||||
|
4、VIP为终身,【[详情请查看](https://gitee.com/guchengwuyue/yshopmall/wikis/pages?sort_id=1715823&doc_id=441578)】
|
||||||
|
|
||||||
## 商城功能
|
## 商城功能
|
||||||
|
|
||||||
* 一:商品模块:商品添加、规格设置,商品上下架等
|
* 一:商品模块:商品添加、规格设置,商品上下架等
|
||||||
* 二:订单模块:下单、购物车、支付,发货、收货、评价、退款等
|
* 二:订单模块:下单、购物车、支付,发货、收货、评价、退款等
|
||||||
* 三:营销模块:积分、优惠券、分销、砍价、拼团、秒杀、多门店等
|
* 三:营销模块:积分、优惠券、分销、砍价、拼团、秒杀(、到店核销等
|
||||||
* 四:微信模块:自定义菜单、自动回复、微信授权、图文管理、模板消息推送
|
* 四:微信模块:自定义菜单、自动回复、微信授权、图文管理、模板消息推送
|
||||||
* 五:配置模块:各种配置
|
* 五:配置模块:各种配置
|
||||||
* 六:用户模块:登陆、注册、会员卡、充值等
|
* 六:用户模块:登陆、注册、会员卡等
|
||||||
* 七:其他等
|
* 七:其他等
|
||||||
|
|
||||||
|
|
||||||
|
#### 已经完成功能
|
||||||
|
- 可以具体查看演示地址查看当前版本已经完成的功能,不再絮叨啦
|
||||||
|
|
||||||
#### 项目结构
|
#### 项目结构
|
||||||
项目采用分模块开发方式
|
项目采用分模块开发方式
|
||||||
@ -65,8 +86,16 @@ yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2
|
|||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="https://images.gitee.com/uploads/images/2020/0407/180521_10ece580_477893.jpeg"/></td>
|
<td><img src="https://images.gitee.com/uploads/images/2020/0303/023406_d4ef025a_477893.jpeg"/></td>
|
||||||
<td><img src="https://images.gitee.com/uploads/images/2020/0407/180547_09fb7ab2_477893.jpeg"/></td>
|
<td><img src="https://images.gitee.com/uploads/images/2019/1129/234538_62ba99b7_477893.jpeg"/></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><img src="https://images.gitee.com/uploads/images/2019/1129/234601_7fb028a6_477893.jpeg"/></td>
|
||||||
|
<td><img src="https://images.gitee.com/uploads/images/2019/1129/234622_6f593729_477893.jpeg"/></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><img src="https://images.gitee.com/uploads/images/2019/1130/114845_9ed3c82c_477893.jpeg"/></td>
|
||||||
|
<td><img src="https://images.gitee.com/uploads/images/2019/1129/234703_49e8fe4f_477893.jpeg"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -94,9 +123,49 @@ yshop基于当前流行技术组合的前后端分离商城系统: SpringBoot2
|
|||||||
* 前端使用技术
|
* 前端使用技术
|
||||||
* 2.1 Vue 全家桶
|
* 2.1 Vue 全家桶
|
||||||
* 2.2 Element
|
* 2.2 Element
|
||||||
* 2.3 mpvue
|
* 2.3 mpvue
|
||||||
* 2.3 uniapp
|
|
||||||
|
|
||||||
|
#### 项目发布明细
|
||||||
|
|
||||||
|
- 1.0版本
|
||||||
|
- 1.1版本新增积分与优惠券抵扣
|
||||||
|
- 1.2版本分销功能已经发布
|
||||||
|
- 1.2.1增加了未付款订单取消功能库存销量退出、优惠券、积分功能,个人中心增加了积分流水
|
||||||
|
- 1.3版本新增拼团功能,已经发布
|
||||||
|
- 1.3.1版本手机端新增商户管理、后台新增统计
|
||||||
|
- 1.3.2新增后台微信相关及其支付配置,新增自动回复配置
|
||||||
|
- 1.3.3新增 后台微信图文发送功能,小程序配置,增加小程序授权等,修复一些bug等
|
||||||
|
- yshop1.6.1发布:新增移动端浏览记录,下单增加简单ReentrantLock锁
|
||||||
|
- yshop1.6.2发布:修复用户昵称带有表情导致入库失败问题,修复下单订单金额为0不能支付的问题
|
||||||
|
- yshop1.6.4发布:后台新增修改订单价格与备注优化订单详情显示明细,修复积分记录标题不显示的问题
|
||||||
|
- yshop1.9.1,新增城市接口,修复小程序登陆与支付问题,发布mpvue1.0小程序
|
||||||
|
- yshop1.9.4,新增小程序普通二维码功能及其修复小程序其他问题,详情登陆演示后台查看明细
|
||||||
|
- yshop2.0发布更新如下:
|
||||||
|
- 1、优化代码结构与名称,修改get请求参数其统一继承分页参数
|
||||||
|
- 2、新增redis监听未付款30分钟取消功能与7天自动收货功能,mq队列作为备选(注释掉)
|
||||||
|
- 3、新增门店到店核销功能
|
||||||
|
- 4、新增分销全局开关#I19HB1
|
||||||
|
- 5、积分新增消费限制#I19TUR
|
||||||
|
- 6、新增充值功能#I18V5D
|
||||||
|
- 7、后台菜单调整,新增财务模块
|
||||||
|
- 8、优化后台配置赋值写法
|
||||||
|
- 9、修复管理后台新增表单之后如果直接再新增数据导致默认数据缺失问题#I1AFBK
|
||||||
|
- 10、修复提交购物车可能查询多条数据的问题
|
||||||
|
- 11、后台登陆背景图固定#I1A0LS
|
||||||
|
- 12、增加常量与枚举优化硬编码问题
|
||||||
|
- 13、微信支付、公众号、模板消息修改
|
||||||
|
- 14、修复代码生成器不全的问题#I1AIO4
|
||||||
|
- 15、修复营销产品拼团等轮播图不能修改的问题#I1AHXR
|
||||||
|
- 16、移除yshop-monitor模块
|
||||||
|
- 17、修复退货理由文字错误#I1AQ7D
|
||||||
|
- 18、修复新增分类的图片自动显示上次一次的图片#I1AQBK
|
||||||
|
- 19、新增微信jssdk接口返回所需js权限
|
||||||
|
- 20、新增余额充值变动模板消息通知
|
||||||
|
- 21、首页数据缓存优化
|
||||||
|
- 22、新增未支付订单显示到期时间
|
||||||
|
- 23、修复加入购物车购买后,后台订单中的商品信息数据重复#I1AXNX
|
||||||
|
- 24、修复后台-管理商品-规格属性 属性无法删除问题#I1AYL2
|
||||||
|
- 25、修复公众号商品直接微信分享标题不显示的问题#I1AX0R
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
12
pom.xml
12
pom.xml
@ -7,7 +7,7 @@
|
|||||||
<groupId>co.yixiang</groupId>
|
<groupId>co.yixiang</groupId>
|
||||||
<artifactId>yshop</artifactId>
|
<artifactId>yshop</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>2.1</version>
|
<version>2.2</version>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>yshop-common</module>
|
<module>yshop-common</module>
|
||||||
@ -18,6 +18,7 @@
|
|||||||
<module>yshop-api</module>
|
<module>yshop-api</module>
|
||||||
<module>yshop-mp</module>
|
<module>yshop-mp</module>
|
||||||
<module>yshop-shop</module>
|
<module>yshop-shop</module>
|
||||||
|
<module>yshop-mproot</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<name>YSHOP商城管理系统</name>
|
<name>YSHOP商城管理系统</name>
|
||||||
@ -125,12 +126,17 @@
|
|||||||
<artifactId>swagger-models</artifactId>
|
<artifactId>swagger-models</artifactId>
|
||||||
<version>1.5.21</version>
|
<version>1.5.21</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<!-- <dependency>
|
||||||
<groupId>com.github.xiaoymin</groupId>
|
<groupId>com.github.xiaoymin</groupId>
|
||||||
<artifactId>swagger-bootstrap-ui</artifactId>
|
<artifactId>swagger-bootstrap-ui</artifactId>
|
||||||
<version>1.9.6</version>
|
<version>1.9.6</version>
|
||||||
|
</dependency>-->
|
||||||
|
<!--单应用-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.xiaoymin</groupId>
|
||||||
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||||
|
<version>2.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--Mysql依赖包-->
|
<!--Mysql依赖包-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
/*
|
|
||||||
Navicat Premium Data Transfer
|
|
||||||
|
|
||||||
Source Server : localhost
|
|
||||||
Source Server Type : MySQL
|
|
||||||
Source Server Version : 50723
|
|
||||||
Source Host : localhost:3306
|
|
||||||
Source Schema : yxshop
|
|
||||||
|
|
||||||
Target Server Type : MySQL
|
|
||||||
Target Server Version : 50723
|
|
||||||
File Encoding : 65001
|
|
||||||
|
|
||||||
Date: 08/04/2020 14:33:54
|
|
||||||
*/
|
|
||||||
|
|
||||||
SET NAMES utf8mb4;
|
|
||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Table structure for yx_system_group_data
|
|
||||||
-- ----------------------------
|
|
||||||
DROP TABLE IF EXISTS `yx_system_group_data`;
|
|
||||||
CREATE TABLE `yx_system_group_data` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据详情ID',
|
|
||||||
`group_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '对应的数据名称',
|
|
||||||
`value` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据组对应的数据值(json数据)',
|
|
||||||
`add_time` int(10) NOT NULL DEFAULT 0 COMMENT '添加数据时间',
|
|
||||||
`sort` int(11) NULL DEFAULT 0 COMMENT '数据排序',
|
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态(1:开启;2:关闭;)',
|
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 237 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组合数据详情表' ROW_FORMAT = Dynamic;
|
|
||||||
|
|
||||||
-- ----------------------------
|
|
||||||
-- Records of yx_system_group_data
|
|
||||||
-- ----------------------------
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (177, 'yshop_home_banner', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5c9f05aee5059.jpg\"],\"name\":\"banner\",\"id\":177,\"pic\":\"https://image.dayouqiantu.cn/5c9f05aee5059.jpg\",\"sort\":1,\"url\":\"wwww\",\"status\":1}', 1571387677, 1, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (180, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e85bfa61251d.png\"],\"uniapp_url\":\"/pages/shop/GoodsClass/index\",\"name\":\"全部商品\",\"id\":180,\"pic\":\"https://image.dayouqiantu.cn/5e85bfa61251d.png\",\"sort\":9,\"url\":\"/goods_list\",\"wxapp_url\":\"/pages/shop/GoodsClass/main\",\"status\":1}', 1571390842, 9, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (182, 'yshop_home_roll_news', '{\"uniapp_url\":\"/pages/shop/news/NewsList/index\",\"id\":182,\"pic\":\"https://i.loli.net/2019/10/18/DqOUgNf7wjuFpPT.png\",\"sort\":2,\"title\":\"分销、拼团、商户功能上线啦!\",\"url\":\"/news_list\",\"info\":\"yshop2.0上线啦\",\"wxapp_url\":\"/pages/shop/news/NewsList/main\",\"status\":1}', 0, 2, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (183, 'yshop_hot_search', '{\"id\":183,\"title\":\"照片\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (184, 'yshop_hot_search', '{\"id\":184,\"title\":\"springboot\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (187, 'yshop_home_roll_news', '{\"uniapp_url\":\"/pages/shop/news/NewsList/index\",\"id\":187,\"sort\":1,\"url\":\"/news_list\",\"info\":\"springboot2+JPA+Mybatisplus商城系统\",\"wxapp_url\":\"/pages/shop/news/NewsList/main\",\"status\":1}', 1572086163, 1, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (188, 'yshop_hot_search', '{\"id\":188,\"title\":\"打印\"}', 1572086172, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (189, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5dec896eeb25a.png\"],\"uniapp_url\":\"/pages/user/UserVip/index\",\"name\":\"会员中心\",\"id\":189,\"pic\":\"https://image.dayouqiantu.cn/5dec896eeb25a.png\",\"sort\":9,\"url\":\"/user/vip\",\"wxapp_url\":\"/pages/user/UserVip/main\",\"status\":1}', 1572087722, 9, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (190, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db428984d64d.png\"],\"uniapp_url\":\"/pages/user/coupon/UserCoupon/index\",\"name\":\"优惠券\",\"id\":190,\"pic\":\"https://image.dayouqiantu.cn/5db428984d64d.png\",\"sort\":8,\"url\":\"/user/get_coupon\",\"wxapp_url\":\"/pages/user/coupon/UserCoupon/main\",\"status\":1}', 0, 8, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (191, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db428a8d3ab0.png\"],\"uniapp_url\":\"/pages/shop/GoodsCollection/index\",\"name\":\"收藏商品\",\"id\":191,\"pic\":\"https://image.dayouqiantu.cn/5db428a8d3ab0.png\",\"sort\":7,\"url\":\"/collection\",\"wxapp_url\":\"/pages/shop/GoodsCollection/main\",\"status\":1}', 0, 7, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (192, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db428bd61b73.png\"],\"uniapp_url\":\"/pages/user/address/AddressManagement/index\",\"name\":\"地址管理\",\"id\":192,\"pic\":\"https://image.dayouqiantu.cn/5db428bd61b73.png\",\"sort\":6,\"url\":\"/user/add_manage\",\"wxapp_url\":\"/pages/user/address/AddressManagement/main\",\"status\":1}', 0, 6, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (193, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db428e28dd48.png\"],\"uniapp_url\":\"/pages/user/promotion/UserPromotion/index\",\"name\":\"我的推广\",\"id\":193,\"pic\":\"https://image.dayouqiantu.cn/5db428e28dd48.png\",\"sort\":5,\"url\":\"/user/user_promotion\",\"wxapp_url\":\"/pages/user/promotion/UserPromotion/main\",\"status\":1}', 0, 5, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (194, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db42a4208c55.png\"],\"uniapp_url\":\"/pages/user/UserAccount/index\",\"name\":\"我的余额\",\"id\":194,\"pic\":\"https://image.dayouqiantu.cn/5db42a4208c55.png\",\"sort\":4,\"url\":\"/user/account\",\"wxapp_url\":\"/pages/user/UserAccount/main\",\"status\":1}', 0, 4, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (195, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5db428f410462.png\"],\"uniapp_url\":\"/pages/user/signIn/Integral/index\",\"name\":\"我的积分\",\"id\":195,\"pic\":\"https://image.dayouqiantu.cn/5db428f410462.png\",\"sort\":3,\"url\":\"/user/integral\",\"wxapp_url\":\"/pages/user/signIn/Integral/main\",\"status\":1}', 0, 3, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (196, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e93f004713.png\"],\"uniapp_url\":\"/pages/shop/news/NewsList/index\",\"name\":\"图文资讯\",\"id\":196,\"pic\":\"https://image.dayouqiantu.cn/5e85bfea151b7.png\",\"sort\":8,\"url\":\"/news_list\",\"wxapp_url\":\"/pages/shop/news/NewsList/main\",\"status\":1}', 1573109648, 8, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (197, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e939507b5e.png\"],\"uniapp_url\":\"/pages/shop/GoodsCollection/index\",\"name\":\"我的收藏\",\"id\":197,\"pic\":\"https://image.dayouqiantu.cn/5e85bfa55f352.png\",\"sort\":7,\"url\":\"/collection\",\"wxapp_url\":\"/pages/shop/GoodsCollection/main\",\"status\":1}', 1573109723, 7, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (199, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e93c9a8304.png\"],\"uniapp_url\":\"/pages/user/coupon/GetCoupon/index\",\"name\":\"优惠券\",\"id\":199,\"pic\":\"https://image.dayouqiantu.cn/5e85bfa6621ca.png\",\"sort\":6,\"url\":\"/user/get_coupon\",\"wxapp_url\":\"/pages/user/coupon/GetCoupon/main\",\"status\":1}', 1573387422, 6, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (200, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e925140b57.png\"],\"uniapp_url\":\"/pages/activity/GoodsGroup/index\",\"name\":\"拼团专区\",\"id\":200,\"pic\":\"https://image.dayouqiantu.cn/5e85bfa4b273f.png\",\"sort\":5,\"url\":\"/activity/group\",\"wxapp_url\":\"/pages/activity/GoodsGroup/main\",\"status\":1}', 0, 5, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (201, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5ddb7a37d58d9.png\"],\"uniapp_url\":\"/pages/orderAdmin/OrderIndex/index\",\"name\":\"商户管理\",\"id\":201,\"pic\":\"https://image.dayouqiantu.cn/5ddb7a37d58d9.png\",\"sort\":2,\"url\":\"/customer/index\",\"wxapp_url\":\"/pages/orderAdmin/OrderIndex/main\",\"status\":1}', 0, 2, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (202, 'yshop_sign_day_num', '{\"sign_num\":\"10\",\"id\":205,\"day\":\"第一天\"}', 0, 9, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (203, 'yshop_sign_day_num', '{\"sign_num\":\"20\",\"id\":\"\",\"day\":\"第二天\"}', 0, 8, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (204, 'yshop_sign_day_num', '{\"sign_num\":\"30\",\"id\":\"\",\"day\":\"第三天\"}', 0, 7, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (205, 'yshop_sign_day_num', '{\"addTime\":\"\",\"sign_num\":\"40\",\"id\":\"\",\"sort\":\"\",\"value\":\"\",\"day\":\"第四天\",\"status\":\"\"}', 0, 6, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (206, 'yshop_sign_day_num', '{\"addTime\":\"\",\"sign_num\":\"50\",\"id\":\"\",\"sort\":\"\",\"value\":\"\",\"day\":\"第五天\",\"status\":\"\"}', 0, 5, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (207, 'yshop_sign_day_num', '{\"addTime\":\"\",\"sign_num\":\"60\",\"id\":\"\",\"sort\":\"\",\"value\":\"\",\"day\":\"第六天\",\"status\":\"\"}', 0, 4, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (208, 'yshop_sign_day_num', '{\"addTime\":\"\",\"sign_num\":\"100\",\"id\":\"\",\"sort\":\"\",\"value\":\"\",\"day\":\"奖励\",\"status\":\"\"}', 0, 3, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (209, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e93010a248.png\"],\"uniapp_url\":\"/pages/user/signIn/Sign/index\",\"name\":\"积分签到\",\"id\":209,\"pic\":\"https://image.dayouqiantu.cn/5e85bf8e494f2.png\",\"sort\":4,\"url\":\"/user/sign\",\"wxapp_url\":\"/pages/user/signIn/Sign/main\",\"status\":1}', 0, 4, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (210, 'yshop_seckill_time', '{\"continued\":2,\"id\":\"\",\"time\":5}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (211, 'yshop_seckill_time', '{\"addTime\":\"\",\"continued\":\"3\",\"id\":\"\",\"sort\":\"\",\"time\":\"7\",\"value\":\"\",\"status\":\"\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (212, 'yshop_seckill_time', '{\"addTime\":\"\",\"continued\":\"2\",\"id\":\"\",\"sort\":\"\",\"time\":\"10\",\"value\":\"\",\"status\":\"\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (213, 'yshop_seckill_time', '{\"addTime\":\"\",\"continued\":\"3\",\"id\":\"\",\"sort\":\"\",\"time\":\"12\",\"value\":\"\",\"status\":\"\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (214, 'yshop_seckill_time', '{\"addTime\":\"\",\"continued\":\"4\",\"id\":\"\",\"sort\":\"\",\"time\":\"15\",\"value\":\"\",\"status\":\"\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (215, 'yshop_seckill_time', '{\"continued\":\"2\",\"id\":223,\"time\":\"19\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (216, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e929f9be59.png\"],\"uniapp_url\":\"/pages/activity/GoodsSeckill/index\",\"name\":\"秒杀专区\",\"id\":216,\"pic\":\"https://image.dayouqiantu.cn/5e85bfa5a9f85.png\",\"sort\":3,\"url\":\"/activity/goods_seckill\",\"wxapp_url\":\"/pages/activity/GoodsSeckill/main\",\"status\":1}', 0, 3, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (217, 'yshop_home_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e4e9276c608f.png\"],\"uniapp_url\":\"/pages/activity/GoodsBargain/index\",\"name\":\"砍价专区\",\"id\":217,\"pic\":\"https://image.dayouqiantu.cn/5e85bfe9b1da8.png\",\"sort\":2,\"url\":\"/activity/bargain\",\"wxapp_url\":\"/pages/activity/GoodsBargain/main\",\"status\":1}', 0, 2, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (218, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5dfd7b748e053.png\"],\"uniapp_url\":\"/pages/activity/BargainRecord/index\",\"name\":\"砍价记录\",\"id\":218,\"pic\":\"https://image.dayouqiantu.cn/5dfd7b748e053.png\",\"sort\":1,\"url\":\"/activity/bargain/record\",\"wxapp_url\":\"/pages/activity/BargainRecord/main\",\"status\":1}', 0, 1, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (219, 'yshop_home_banner', '{\"name\":\"222\",\"id\":\"\",\"pic\":\"https://image.dayouqiantu.cn/5c9f117f624ee.jpg\",\"sort\":\"\",\"url\":\"/\",\"status\":\"\"}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (221, 'yshop_my_menus', '{\"imageArr\":[\"https://image.dayouqiantu.cn/5e60da498cfdd.png\"],\"name\":\"订单核销\",\"id\":230,\"pic\":\"https://image.dayouqiantu.cn/5e60da498cfdd.png\",\"sort\":0,\"url\":\"/order/order_cancellation\",\"wxapp_url\":\"\",\"status\":1}', 0, 0, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (222, 'yshop_recharge_price_ways', '{\"give_price\":\"10\",\"price\":\"100\",\"id\":\"\",\"sort\":0,\"status\":1}', 0, 1, 1);
|
|
||||||
INSERT INTO `yx_system_group_data` VALUES (223, 'yshop_recharge_price_ways', '{\"give_price\":\"1\",\"price\":1,\"id\":\"\",\"sort\":0,\"status\":1}', 0, 0, 1);
|
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS = 1;
|
|
@ -1,29 +0,0 @@
|
|||||||
CREATE TABLE `yx_system_store_staff` (
|
|
||||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
||||||
`uid` int(10) unsigned NOT NULL COMMENT '微信用户id',
|
|
||||||
`nickname` varchar(50) NOT NULL,
|
|
||||||
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '店员头像',
|
|
||||||
`store_id` int(11) NOT NULL COMMENT '门店id',
|
|
||||||
`store_name` varchar(50) DEFAULT NULL,
|
|
||||||
`staff_name` varchar(64) DEFAULT '' COMMENT '店员名称',
|
|
||||||
`phone` char(15) DEFAULT NULL COMMENT '手机号码',
|
|
||||||
`verify_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '核销开关',
|
|
||||||
`status` tinyint(2) DEFAULT '1' COMMENT '状态',
|
|
||||||
`add_time` int(10) DEFAULT NULL COMMENT '添加时间',
|
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='门店店员表';
|
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE `yx_user_recharge`
|
|
||||||
ADD COLUMN `give_price` decimal(8, 2) NULL DEFAULT 0 COMMENT '赠送金额' AFTER `price`
|
|
||||||
|
|
||||||
ALTER TABLE `yx_system_attachment`
|
|
||||||
ADD COLUMN `uid` int(0) UNSIGNED NULL DEFAULT 0 COMMENT '用户id' AFTER `module_type`,
|
|
||||||
ADD COLUMN `invite_code` varchar(50) NULL DEFAULT '' COMMENT '邀请码' AFTER `uid`
|
|
||||||
|
|
||||||
ALTER TABLE `yx_store_seckill`
|
|
||||||
ADD COLUMN `time_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '时间段id' AFTER `start_time_date`
|
|
||||||
|
|
||||||
ALTER TABLE `yx_store_category`
|
|
||||||
ADD COLUMN `is_del` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态' AFTER `add_time`
|
|
||||||
|
|
2861
sql/yxshop2.1.sql
2861
sql/yxshop2.1.sql
File diff suppressed because it is too large
Load Diff
3118
sql/yxshop2.2.sql
Normal file
3118
sql/yxshop2.2.sql
Normal file
File diff suppressed because one or more lines are too long
@ -1,5 +0,0 @@
|
|||||||
新项目 直接导入yshop2.1.sql即可
|
|
||||||
2.0升级到2.1,直接把yshop2.1升级sql.txt里面sql语句运行即可
|
|
||||||
|
|
||||||
2.0.1:yx_cache表修改为yx_wechat_menu表
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>yshop</artifactId>
|
<artifactId>yshop</artifactId>
|
||||||
<groupId>co.yixiang</groupId>
|
<groupId>co.yixiang</groupId>
|
||||||
<version>2.1</version>
|
<version>2.2</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>co.yixiang</groupId>
|
<groupId>co.yixiang</groupId>
|
||||||
<artifactId>yshop-tools</artifactId>
|
<artifactId>yshop-tools</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>co.yixiang</groupId>
|
<groupId>co.yixiang</groupId>
|
||||||
<artifactId>yshop-mp</artifactId>
|
<artifactId>yshop-mp</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--jwt-->
|
<!--jwt-->
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -20,7 +20,7 @@ import java.util.Date;
|
|||||||
* 商品秒杀产品表
|
* 商品秒杀产品表
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author xuwenbo
|
* @author hupeng
|
||||||
* @since 2019-12-14
|
* @since 2019-12-14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ -20,7 +20,7 @@ import java.util.List;
|
|||||||
* 商品秒杀产品表 Mapper 接口
|
* 商品秒杀产品表 Mapper 接口
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author xuwenbo
|
* @author hupeng
|
||||||
* @since 2019-12-14
|
* @since 2019-12-14
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -23,7 +23,7 @@ import java.util.List;
|
|||||||
* 商品秒杀产品表 服务类
|
* 商品秒杀产品表 服务类
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author xuwenbo
|
* @author hupeng
|
||||||
* @since 2019-12-14
|
* @since 2019-12-14
|
||||||
*/
|
*/
|
||||||
public interface YxStoreSeckillService extends BaseService<YxStoreSeckill> {
|
public interface YxStoreSeckillService extends BaseService<YxStoreSeckill> {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -16,7 +16,7 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
import co.yixiang.annotation.AnonymousAccess;
|
import co.yixiang.annotation.AnonymousAccess;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.enums.AppFromEnum;
|
import co.yixiang.enums.AppFromEnum;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -15,7 +15,7 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
import co.yixiang.annotation.AnonymousAccess;
|
import co.yixiang.annotation.AnonymousAccess;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.enums.AppFromEnum;
|
import co.yixiang.enums.AppFromEnum;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -11,7 +11,7 @@ import co.yixiang.common.web.param.QueryParam;
|
|||||||
* 商品秒杀产品表 查询参数对象
|
* 商品秒杀产品表 查询参数对象
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author xuwenbo
|
* @author hupeng
|
||||||
* @date 2019-12-14
|
* @date 2019-12-14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ -16,7 +16,7 @@ import java.util.List;
|
|||||||
* 商品秒杀产品表 查询结果对象
|
* 商品秒杀产品表 查询结果对象
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author xuwenbo
|
* @author hupeng
|
||||||
* @date 2019-12-14
|
* @date 2019-12-14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -11,11 +11,10 @@ package co.yixiang.modules.monitor.service.impl;
|
|||||||
import co.yixiang.modules.monitor.domain.Visits;
|
import co.yixiang.modules.monitor.domain.Visits;
|
||||||
import co.yixiang.modules.monitor.repository.VisitsRepository;
|
import co.yixiang.modules.monitor.repository.VisitsRepository;
|
||||||
import co.yixiang.modules.monitor.service.VisitsService;
|
import co.yixiang.modules.monitor.service.VisitsService;
|
||||||
|
import co.yixiang.logging.service.mapper.LogMapper;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import co.yixiang.repository.LogRepository;
|
|
||||||
import co.yixiang.utils.StringUtils;
|
import co.yixiang.utils.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -34,7 +33,7 @@ import java.util.stream.Collectors;
|
|||||||
public class VisitsServiceImpl implements VisitsService {
|
public class VisitsServiceImpl implements VisitsService {
|
||||||
|
|
||||||
private final VisitsRepository visitsRepository;
|
private final VisitsRepository visitsRepository;
|
||||||
private final LogRepository logRepository;
|
private final LogMapper logMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void save() {
|
public void save() {
|
||||||
@ -55,7 +54,7 @@ public class VisitsServiceImpl implements VisitsService {
|
|||||||
LocalDate localDate = LocalDate.now();
|
LocalDate localDate = LocalDate.now();
|
||||||
Visits visits = visitsRepository.findByDate(localDate.toString());
|
Visits visits = visitsRepository.findByDate(localDate.toString());
|
||||||
visits.setPvCounts(visits.getPvCounts()+1);
|
visits.setPvCounts(visits.getPvCounts()+1);
|
||||||
long ipCounts = logRepository.findIp(localDate.toString(), localDate.plusDays(1).toString());
|
long ipCounts = logMapper.findIp(localDate.toString(), localDate.plusDays(1).toString());
|
||||||
visits.setIpCounts(ipCounts);
|
visits.setIpCounts(ipCounts);
|
||||||
visitsRepository.save(visits);
|
visitsRepository.save(visits);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package co.yixiang.modules.notify;
|
package co.yixiang.modules.notify;
|
||||||
|
|
||||||
import co.yixiang.utils.JacksonUtil;
|
import co.yixiang.tools.utils.JacksonUtil;
|
||||||
import com.aliyuncs.CommonRequest;
|
import com.aliyuncs.CommonRequest;
|
||||||
import com.aliyuncs.CommonResponse;
|
import com.aliyuncs.CommonResponse;
|
||||||
import com.aliyuncs.DefaultAcsClient;
|
import com.aliyuncs.DefaultAcsClient;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -16,8 +16,8 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import co.yixiang.common.service.impl.BaseServiceImpl;
|
import co.yixiang.common.service.impl.BaseServiceImpl;
|
||||||
import co.yixiang.common.web.vo.Paging;
|
import co.yixiang.common.web.vo.Paging;
|
||||||
import co.yixiang.constant.ShopConstants;
|
import co.yixiang.constant.ShopConstants;
|
||||||
import co.yixiang.domain.AlipayConfig;
|
import co.yixiang.tools.domain.AlipayConfig;
|
||||||
import co.yixiang.domain.vo.TradeVo;
|
import co.yixiang.tools.domain.vo.TradeVo;
|
||||||
import co.yixiang.enums.*;
|
import co.yixiang.enums.*;
|
||||||
import co.yixiang.exception.ErrorRequestException;
|
import co.yixiang.exception.ErrorRequestException;
|
||||||
import co.yixiang.modules.activity.service.*;
|
import co.yixiang.modules.activity.service.*;
|
||||||
@ -59,7 +59,7 @@ import co.yixiang.modules.user.web.vo.YxWechatUserQueryVo;
|
|||||||
import co.yixiang.mp.service.YxPayService;
|
import co.yixiang.mp.service.YxPayService;
|
||||||
import co.yixiang.mp.service.YxTemplateService;
|
import co.yixiang.mp.service.YxTemplateService;
|
||||||
import co.yixiang.mp.service.YxMiniPayService;
|
import co.yixiang.mp.service.YxMiniPayService;
|
||||||
import co.yixiang.service.AlipayService;
|
import co.yixiang.tools.service.AlipayConfigService;
|
||||||
import co.yixiang.utils.OrderUtil;
|
import co.yixiang.utils.OrderUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@ -142,7 +142,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<YxStoreOrderMapper,
|
|||||||
@Autowired
|
@Autowired
|
||||||
private YxExpressService expressService;
|
private YxExpressService expressService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private AlipayService alipayService;
|
private AlipayConfigService alipayService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private YxSystemStoreService systemStoreService;
|
private YxSystemStoreService systemStoreService;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -13,17 +13,15 @@ import cn.hutool.core.util.ObjectUtil;
|
|||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||||
import co.yixiang.annotation.AnonymousAccess;
|
import co.yixiang.annotation.AnonymousAccess;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.enums.AppFromEnum;
|
|
||||||
import co.yixiang.enums.OrderInfoEnum;
|
import co.yixiang.enums.OrderInfoEnum;
|
||||||
import co.yixiang.enums.PayTypeEnum;
|
import co.yixiang.enums.PayTypeEnum;
|
||||||
import co.yixiang.enums.RedisKeyEnum;
|
import co.yixiang.enums.RedisKeyEnum;
|
||||||
import co.yixiang.exception.BadRequestException;
|
|
||||||
import co.yixiang.exception.ErrorRequestException;
|
import co.yixiang.exception.ErrorRequestException;
|
||||||
import co.yixiang.express.ExpressService;
|
import co.yixiang.tools.express.ExpressService;
|
||||||
import co.yixiang.express.dao.ExpressInfo;
|
import co.yixiang.tools.express.dao.ExpressInfo;
|
||||||
import co.yixiang.modules.activity.entity.YxStoreBargainUser;
|
import co.yixiang.modules.activity.entity.YxStoreBargainUser;
|
||||||
import co.yixiang.modules.activity.service.YxStoreBargainUserService;
|
import co.yixiang.modules.activity.service.YxStoreBargainUserService;
|
||||||
import co.yixiang.modules.activity.service.YxStorePinkService;
|
import co.yixiang.modules.activity.service.YxStorePinkService;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -8,22 +8,15 @@
|
|||||||
*/
|
*/
|
||||||
package co.yixiang.modules.security.rest;
|
package co.yixiang.modules.security.rest;
|
||||||
|
|
||||||
import cn.binarywang.wx.miniapp.api.WxMaService;
|
|
||||||
import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult;
|
|
||||||
import cn.binarywang.wx.miniapp.bean.WxMaUserInfo;
|
|
||||||
import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.RandomUtil;
|
import cn.hutool.core.util.RandomUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import co.yixiang.annotation.AnonymousAccess;
|
import co.yixiang.annotation.AnonymousAccess;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiCode;
|
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.constant.ShopConstants;
|
import co.yixiang.constant.ShopConstants;
|
||||||
import co.yixiang.enums.AppFromEnum;
|
import co.yixiang.enums.AppFromEnum;
|
||||||
import co.yixiang.enums.RedisKeyEnum;
|
|
||||||
import co.yixiang.exception.ErrorRequestException;
|
|
||||||
import co.yixiang.modules.notify.NotifyService;
|
import co.yixiang.modules.notify.NotifyService;
|
||||||
import co.yixiang.modules.notify.NotifyType;
|
import co.yixiang.modules.notify.NotifyType;
|
||||||
import co.yixiang.modules.notify.SmsResult;
|
import co.yixiang.modules.notify.SmsResult;
|
||||||
@ -37,28 +30,19 @@ import co.yixiang.modules.security.security.vo.JwtUser;
|
|||||||
import co.yixiang.modules.security.service.OnlineUserService;
|
import co.yixiang.modules.security.service.OnlineUserService;
|
||||||
import co.yixiang.modules.user.entity.YxSystemAttachment;
|
import co.yixiang.modules.user.entity.YxSystemAttachment;
|
||||||
import co.yixiang.modules.user.entity.YxUser;
|
import co.yixiang.modules.user.entity.YxUser;
|
||||||
import co.yixiang.modules.user.entity.YxWechatUser;
|
|
||||||
import co.yixiang.modules.user.service.YxSystemAttachmentService;
|
import co.yixiang.modules.user.service.YxSystemAttachmentService;
|
||||||
import co.yixiang.modules.user.service.YxUserService;
|
import co.yixiang.modules.user.service.YxUserService;
|
||||||
import co.yixiang.modules.user.service.YxWechatUserService;
|
import co.yixiang.modules.user.service.YxWechatUserService;
|
||||||
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
|
|
||||||
import co.yixiang.mp.config.WxMpConfiguration;
|
|
||||||
import co.yixiang.utils.OrderUtil;
|
import co.yixiang.utils.OrderUtil;
|
||||||
import co.yixiang.utils.RedisUtil;
|
|
||||||
import co.yixiang.utils.RedisUtils;
|
import co.yixiang.utils.RedisUtils;
|
||||||
import co.yixiang.utils.SecurityUtils;
|
import co.yixiang.utils.SecurityUtils;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.aliyuncs.CommonResponse;
|
import com.aliyuncs.CommonResponse;
|
||||||
import com.vdurmont.emoji.EmojiParser;
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import me.chanjar.weixin.common.error.WxErrorException;
|
|
||||||
import me.chanjar.weixin.mp.api.WxMpService;
|
|
||||||
import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken;
|
|
||||||
import me.chanjar.weixin.mp.bean.result.WxMpUser;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||||
@ -74,7 +58,6 @@ import javax.servlet.http.HttpServletRequest;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -101,7 +84,7 @@ public class AuthController {
|
|||||||
private final YxUserService userService;
|
private final YxUserService userService;
|
||||||
private final PasswordEncoder passwordEncoder;
|
private final PasswordEncoder passwordEncoder;
|
||||||
private final YxWechatUserService wechatUserService;
|
private final YxWechatUserService wechatUserService;
|
||||||
private final WxMaService wxMaService;
|
|
||||||
private final NotifyService notifyService;
|
private final NotifyService notifyService;
|
||||||
private final YxSystemAttachmentService systemAttachmentService;
|
private final YxSystemAttachmentService systemAttachmentService;
|
||||||
|
|
||||||
@ -161,132 +144,7 @@ public class AuthController {
|
|||||||
* 2、目前登陆授权打通方式适用于新项目(也就是你yx_user、yx_wechat_user都是空的)
|
* 2、目前登陆授权打通方式适用于新项目(也就是你yx_user、yx_wechat_user都是空的)
|
||||||
* 3、如果你以前已经有数据请自行处理
|
* 3、如果你以前已经有数据请自行处理
|
||||||
*/
|
*/
|
||||||
|
return ApiResult.ok(userService.authLogin(code,spread,request));
|
||||||
try {
|
|
||||||
WxMpService wxService = WxMpConfiguration.getWxMpService();
|
|
||||||
WxMpOAuth2AccessToken wxMpOAuth2AccessToken = wxService.oauth2getAccessToken(code);
|
|
||||||
WxMpUser wxMpUser = wxService.oauth2getUserInfo(wxMpOAuth2AccessToken, null);
|
|
||||||
String openid = wxMpUser.getOpenId();
|
|
||||||
|
|
||||||
//如果开启了UnionId
|
|
||||||
if (StrUtil.isNotBlank(wxMpUser.getUnionId())) {
|
|
||||||
openid = wxMpUser.getUnionId();
|
|
||||||
}
|
|
||||||
YxUser yxUser = userService.findByName(openid);
|
|
||||||
|
|
||||||
String username = "";
|
|
||||||
if(ObjectUtil.isNull(yxUser)){
|
|
||||||
//过滤掉表情
|
|
||||||
String nickname = EmojiParser.removeAllEmojis(wxMpUser.getNickname());
|
|
||||||
log.info("昵称:{}", nickname);
|
|
||||||
//用户保存
|
|
||||||
YxUser user = new YxUser();
|
|
||||||
user.setAccount(nickname);
|
|
||||||
//如果开启了UnionId
|
|
||||||
if (StrUtil.isNotBlank(wxMpUser.getUnionId())) {
|
|
||||||
username = wxMpUser.getUnionId();
|
|
||||||
user.setUsername(wxMpUser.getUnionId());
|
|
||||||
}else{
|
|
||||||
username = wxMpUser.getOpenId();
|
|
||||||
user.setUsername(wxMpUser.getOpenId());
|
|
||||||
}
|
|
||||||
user.setPassword(passwordEncoder.encode(ShopConstants.YSHOP_DEFAULT_PWD));
|
|
||||||
user.setPwd(passwordEncoder.encode(ShopConstants.YSHOP_DEFAULT_PWD));
|
|
||||||
user.setPhone("");
|
|
||||||
user.setUserType(AppFromEnum.WECHAT.getValue());
|
|
||||||
user.setLoginType(AppFromEnum.WECHAT.getValue());
|
|
||||||
user.setAddTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
user.setLastTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
user.setNickname(nickname);
|
|
||||||
user.setAvatar(wxMpUser.getHeadImgUrl());
|
|
||||||
user.setNowMoney(BigDecimal.ZERO);
|
|
||||||
user.setBrokeragePrice(BigDecimal.ZERO);
|
|
||||||
user.setIntegral(BigDecimal.ZERO);
|
|
||||||
|
|
||||||
userService.save(user);
|
|
||||||
|
|
||||||
|
|
||||||
//保存微信用户
|
|
||||||
YxWechatUser yxWechatUser = new YxWechatUser();
|
|
||||||
yxWechatUser.setAddTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
yxWechatUser.setNickname(nickname);
|
|
||||||
yxWechatUser.setOpenid(wxMpUser.getOpenId());
|
|
||||||
int sub = 0;
|
|
||||||
if (ObjectUtil.isNotNull(wxMpUser.getSubscribe()) && wxMpUser.getSubscribe()) sub = 1;
|
|
||||||
yxWechatUser.setSubscribe(sub);
|
|
||||||
yxWechatUser.setSex(wxMpUser.getSex());
|
|
||||||
yxWechatUser.setLanguage(wxMpUser.getLanguage());
|
|
||||||
yxWechatUser.setCity(wxMpUser.getCity());
|
|
||||||
yxWechatUser.setProvince(wxMpUser.getProvince());
|
|
||||||
yxWechatUser.setCountry(wxMpUser.getCountry());
|
|
||||||
yxWechatUser.setHeadimgurl(wxMpUser.getHeadImgUrl());
|
|
||||||
if (ObjectUtil.isNotNull(wxMpUser.getSubscribeTime())) {
|
|
||||||
yxWechatUser.setSubscribeTime(wxMpUser.getSubscribeTime().intValue());
|
|
||||||
}
|
|
||||||
if (StrUtil.isNotBlank(wxMpUser.getUnionId())) {
|
|
||||||
yxWechatUser.setUnionid(wxMpUser.getUnionId());
|
|
||||||
}
|
|
||||||
if (StrUtil.isNotEmpty(wxMpUser.getRemark())) {
|
|
||||||
yxWechatUser.setUnionid(wxMpUser.getRemark());
|
|
||||||
}
|
|
||||||
if (ObjectUtil.isNotEmpty(wxMpUser.getGroupId())) {
|
|
||||||
yxWechatUser.setGroupid(wxMpUser.getGroupId());
|
|
||||||
}
|
|
||||||
yxWechatUser.setUid(user.getUid());
|
|
||||||
|
|
||||||
wechatUserService.save(yxWechatUser);
|
|
||||||
|
|
||||||
}else{
|
|
||||||
username = yxUser.getUsername();
|
|
||||||
if(StrUtil.isNotBlank(wxMpUser.getOpenId()) || StrUtil.isNotBlank(wxMpUser.getUnionId())){
|
|
||||||
YxWechatUser wechatUser = new YxWechatUser();
|
|
||||||
wechatUser.setUid(yxUser.getUid());
|
|
||||||
wechatUser.setUnionid(wxMpUser.getUnionId());
|
|
||||||
wechatUser.setOpenid(wxMpUser.getOpenId());
|
|
||||||
|
|
||||||
wechatUserService.updateById(wechatUser);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsernamePasswordAuthenticationToken authenticationToken =
|
|
||||||
new UsernamePasswordAuthenticationToken(username,
|
|
||||||
ShopConstants.YSHOP_DEFAULT_PWD);
|
|
||||||
|
|
||||||
Authentication authentication = authenticationManagerBuilder.getObject().authenticate(authenticationToken);
|
|
||||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
|
||||||
// 生成令牌
|
|
||||||
String token = tokenProvider.createToken(authentication);
|
|
||||||
final JwtUser jwtUserT = (JwtUser) authentication.getPrincipal();
|
|
||||||
// 保存在线信息
|
|
||||||
onlineUserService.save(jwtUserT, token, request);
|
|
||||||
|
|
||||||
Date expiresTime = tokenProvider.getExpirationDateFromToken(token);
|
|
||||||
String expiresTimeStr = DateUtil.formatDateTime(expiresTime);
|
|
||||||
|
|
||||||
Map<String, String> map = new LinkedHashMap<>();
|
|
||||||
map.put("token", token);
|
|
||||||
map.put("expires_time", expiresTimeStr);
|
|
||||||
|
|
||||||
if (singleLogin) {
|
|
||||||
//踢掉之前已经登录的token
|
|
||||||
onlineUserService.checkLoginOnUser(jwtUserT.getUsername(), token);
|
|
||||||
}
|
|
||||||
|
|
||||||
//设置推广关系
|
|
||||||
if (StrUtil.isNotEmpty(spread) && !spread.equals("NaN")) {
|
|
||||||
userService.setSpread(Integer.valueOf(spread),
|
|
||||||
jwtUserT.getId().intValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
// 返回 token
|
|
||||||
return ApiResult.ok(map);
|
|
||||||
} catch (WxErrorException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
log.error(e.getMessage());
|
|
||||||
return ApiResult.fail("授权失败");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -304,135 +162,8 @@ public class AuthController {
|
|||||||
* 2、目前登陆授权打通方式适用于新项目(也就是你yx_user、yx_wechat_user都是空的)
|
* 2、目前登陆授权打通方式适用于新项目(也就是你yx_user、yx_wechat_user都是空的)
|
||||||
* 3、如果你以前已经有数据请自行处理
|
* 3、如果你以前已经有数据请自行处理
|
||||||
*/
|
*/
|
||||||
String code = loginParam.getCode();
|
return ApiResult.ok(userService.wxappAuth(loginParam,request)) ;
|
||||||
String encryptedData = loginParam.getEncryptedData();
|
|
||||||
String iv = loginParam.getIv();
|
|
||||||
String spread = loginParam.getSpread();
|
|
||||||
try {
|
|
||||||
//读取redis配置
|
|
||||||
String appId = RedisUtil.get(RedisKeyEnum.WXAPP_APPID.getValue());
|
|
||||||
String secret = RedisUtil.get(RedisKeyEnum.WXAPP_SECRET.getValue());
|
|
||||||
if (StrUtil.isBlank(appId) || StrUtil.isBlank(secret)) {
|
|
||||||
throw new ErrorRequestException("请先配置小程序");
|
|
||||||
}
|
|
||||||
WxMaDefaultConfigImpl wxMaConfig = new WxMaDefaultConfigImpl();
|
|
||||||
wxMaConfig.setAppid(appId);
|
|
||||||
wxMaConfig.setSecret(secret);
|
|
||||||
|
|
||||||
wxMaService.setWxMaConfig(wxMaConfig);
|
|
||||||
WxMaJscode2SessionResult session = wxMaService.getUserService().getSessionInfo(code);
|
|
||||||
String openid = session.getOpenid();
|
|
||||||
//如果开启了UnionId
|
|
||||||
if (StrUtil.isNotBlank(session.getUnionid())) {
|
|
||||||
openid = session.getUnionid();
|
|
||||||
}
|
|
||||||
|
|
||||||
YxUser yxUser = userService.findByName(openid);
|
|
||||||
String username = "";
|
|
||||||
if(ObjectUtil.isNull(yxUser)){
|
|
||||||
|
|
||||||
WxMaUserInfo wxMpUser = wxMaService.getUserService()
|
|
||||||
.getUserInfo(session.getSessionKey(), encryptedData, iv);
|
|
||||||
//过滤掉表情
|
|
||||||
String nickname = EmojiParser.removeAllEmojis(wxMpUser.getNickName());
|
|
||||||
//用户保存
|
|
||||||
YxUser user = new YxUser();
|
|
||||||
user.setAccount(nickname);
|
|
||||||
|
|
||||||
//如果开启了UnionId
|
|
||||||
if (StrUtil.isNotBlank(wxMpUser.getUnionId())) {
|
|
||||||
username = wxMpUser.getUnionId();
|
|
||||||
user.setUsername(wxMpUser.getUnionId());
|
|
||||||
}else{
|
|
||||||
username = wxMpUser.getOpenId();
|
|
||||||
user.setUsername(wxMpUser.getOpenId());
|
|
||||||
}
|
|
||||||
user.setPassword(passwordEncoder.encode(ShopConstants.YSHOP_DEFAULT_PWD));
|
|
||||||
user.setPwd(passwordEncoder.encode(ShopConstants.YSHOP_DEFAULT_PWD));
|
|
||||||
user.setPhone("");
|
|
||||||
user.setUserType(AppFromEnum.ROUNTINE.getValue());
|
|
||||||
user.setAddTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
user.setLastTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
user.setNickname(nickname);
|
|
||||||
user.setAvatar(wxMpUser.getAvatarUrl());
|
|
||||||
user.setNowMoney(BigDecimal.ZERO);
|
|
||||||
user.setBrokeragePrice(BigDecimal.ZERO);
|
|
||||||
user.setIntegral(BigDecimal.ZERO);
|
|
||||||
|
|
||||||
userService.save(user);
|
|
||||||
|
|
||||||
|
|
||||||
//保存微信用户
|
|
||||||
YxWechatUser yxWechatUser = new YxWechatUser();
|
|
||||||
// System.out.println("wxMpUser:"+wxMpUser);
|
|
||||||
yxWechatUser.setAddTime(OrderUtil.getSecondTimestampTwo());
|
|
||||||
yxWechatUser.setNickname(nickname);
|
|
||||||
yxWechatUser.setRoutineOpenid(wxMpUser.getOpenId());
|
|
||||||
int sub = 0;
|
|
||||||
yxWechatUser.setSubscribe(sub);
|
|
||||||
yxWechatUser.setSex(Integer.valueOf(wxMpUser.getGender()));
|
|
||||||
yxWechatUser.setLanguage(wxMpUser.getLanguage());
|
|
||||||
yxWechatUser.setCity(wxMpUser.getCity());
|
|
||||||
yxWechatUser.setProvince(wxMpUser.getProvince());
|
|
||||||
yxWechatUser.setCountry(wxMpUser.getCountry());
|
|
||||||
yxWechatUser.setHeadimgurl(wxMpUser.getAvatarUrl());
|
|
||||||
if (StrUtil.isNotBlank(wxMpUser.getUnionId())) {
|
|
||||||
yxWechatUser.setUnionid(wxMpUser.getUnionId());
|
|
||||||
}
|
|
||||||
yxWechatUser.setUid(user.getUid());
|
|
||||||
|
|
||||||
wechatUserService.save(yxWechatUser);
|
|
||||||
|
|
||||||
}else{
|
|
||||||
username = yxUser.getUsername();
|
|
||||||
if(StrUtil.isNotBlank(session.getOpenid()) || StrUtil.isNotBlank(session.getUnionid())){
|
|
||||||
YxWechatUser wechatUser = new YxWechatUser();
|
|
||||||
wechatUser.setUid(yxUser.getUid());
|
|
||||||
wechatUser.setUnionid(session.getUnionid());
|
|
||||||
wechatUser.setRoutineOpenid(session.getOpenid());
|
|
||||||
|
|
||||||
wechatUserService.updateById(wechatUser);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
UsernamePasswordAuthenticationToken authenticationToken =
|
|
||||||
new UsernamePasswordAuthenticationToken(username,
|
|
||||||
ShopConstants.YSHOP_DEFAULT_PWD);
|
|
||||||
|
|
||||||
Authentication authentication = authenticationManagerBuilder.getObject().authenticate(authenticationToken);
|
|
||||||
SecurityContextHolder.getContext().setAuthentication(authentication);
|
|
||||||
// 生成令牌
|
|
||||||
String token = tokenProvider.createToken(authentication);
|
|
||||||
final JwtUser jwtUserT = (JwtUser) authentication.getPrincipal();
|
|
||||||
// 保存在线信息
|
|
||||||
onlineUserService.save(jwtUserT, token, request);
|
|
||||||
|
|
||||||
Date expiresTime = tokenProvider.getExpirationDateFromToken(token);
|
|
||||||
String expiresTimeStr = DateUtil.formatDateTime(expiresTime);
|
|
||||||
|
|
||||||
|
|
||||||
Map<String, String> map = new LinkedHashMap<>();
|
|
||||||
map.put("token", token);
|
|
||||||
map.put("expires_time", expiresTimeStr);
|
|
||||||
|
|
||||||
if (singleLogin) {
|
|
||||||
//踢掉之前已经登录的token
|
|
||||||
onlineUserService.checkLoginOnUser(jwtUserT.getUsername(), token);
|
|
||||||
}
|
|
||||||
|
|
||||||
//设置推广关系
|
|
||||||
if (StrUtil.isNotEmpty(spread)) {
|
|
||||||
userService.setSpread(Integer.valueOf(spread),
|
|
||||||
jwtUserT.getId().intValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
// 返回 token
|
|
||||||
return ApiResult.ok(map);
|
|
||||||
} catch (WxErrorException e) {
|
|
||||||
log.error(e.getMessage(), e);
|
|
||||||
return ApiResult.fail(e.toString());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -9,7 +9,7 @@
|
|||||||
package co.yixiang.modules.shop.web.controller;
|
package co.yixiang.modules.shop.web.controller;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.enums.CouponEnum;
|
import co.yixiang.enums.CouponEnum;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -9,7 +9,7 @@
|
|||||||
package co.yixiang.modules.shop.web.controller;
|
package co.yixiang.modules.shop.web.controller;
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.modules.shop.service.YxStoreCartService;
|
import co.yixiang.modules.shop.service.YxStoreCartService;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -12,9 +12,8 @@ import cn.hutool.core.io.FileUtil;
|
|||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
|
||||||
import co.yixiang.annotation.AnonymousAccess;
|
import co.yixiang.annotation.AnonymousAccess;
|
||||||
import co.yixiang.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.common.api.ApiResult;
|
import co.yixiang.common.api.ApiResult;
|
||||||
import co.yixiang.common.web.controller.BaseController;
|
import co.yixiang.common.web.controller.BaseController;
|
||||||
import co.yixiang.enums.AppFromEnum;
|
import co.yixiang.enums.AppFromEnum;
|
||||||
@ -29,7 +28,6 @@ import co.yixiang.modules.user.entity.YxSystemAttachment;
|
|||||||
import co.yixiang.modules.user.service.YxSystemAttachmentService;
|
import co.yixiang.modules.user.service.YxSystemAttachmentService;
|
||||||
import co.yixiang.modules.user.service.YxUserService;
|
import co.yixiang.modules.user.service.YxUserService;
|
||||||
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
|
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
|
||||||
import co.yixiang.utils.OrderUtil;
|
|
||||||
import co.yixiang.utils.SecurityUtils;
|
import co.yixiang.utils.SecurityUtils;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright (C) 2018-2019
|
* Copyright (C) 2018-2020
|
||||||
* All rights reserved, Designed By www.yixiang.co
|
* All rights reserved, Designed By www.yixiang.co
|
||||||
* 注意:
|
* 注意:
|
||||||
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
* 本软件为www.yixiang.co开发研制,未经购买不得使用
|
||||||
@ -11,12 +11,14 @@ package co.yixiang.modules.user.service;
|
|||||||
import co.yixiang.common.service.BaseService;
|
import co.yixiang.common.service.BaseService;
|
||||||
import co.yixiang.common.web.vo.Paging;
|
import co.yixiang.common.web.vo.Paging;
|
||||||
import co.yixiang.modules.order.web.vo.YxStoreOrderQueryVo;
|
import co.yixiang.modules.order.web.vo.YxStoreOrderQueryVo;
|
||||||
|
import co.yixiang.modules.security.rest.param.LoginParam;
|
||||||
import co.yixiang.modules.user.entity.YxUser;
|
import co.yixiang.modules.user.entity.YxUser;
|
||||||
import co.yixiang.modules.user.web.dto.PromUserDTO;
|
import co.yixiang.modules.user.web.dto.PromUserDTO;
|
||||||
import co.yixiang.modules.user.web.param.PromParam;
|
import co.yixiang.modules.user.web.param.PromParam;
|
||||||
import co.yixiang.modules.user.web.param.YxUserQueryParam;
|
import co.yixiang.modules.user.web.param.YxUserQueryParam;
|
||||||
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
|
import co.yixiang.modules.user.web.vo.YxUserQueryVo;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -71,4 +73,7 @@ public interface YxUserService extends BaseService<YxUser> {
|
|||||||
*/
|
*/
|
||||||
Paging<YxUserQueryVo> getYxUserPageList(YxUserQueryParam yxUserQueryParam) throws Exception;
|
Paging<YxUserQueryVo> getYxUserPageList(YxUserQueryParam yxUserQueryParam) throws Exception;
|
||||||
|
|
||||||
|
Object authLogin(String code, String spread, HttpServletRequest request);
|
||||||
|
|
||||||
|
Object wxappAuth(LoginParam loginParam, HttpServletRequest request);
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user