Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
c58c2606
Commit
c58c2606
authored
Jul 27, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
2c2693f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
MyWalletBiz.java
...va/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
+2
-2
MyWalletController.java
...ithub/wxiaoqi/security/admin/rest/MyWalletController.java
+1
-1
ConfigFeign.java
...rc/main/java/com/xxfc/platform/app/feign/ConfigFeign.java
+1
-1
CofigBiz.java
...ver/src/main/java/com/xxfc/platform/app/biz/CofigBiz.java
+1
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
View file @
c58c2606
...
@@ -140,7 +140,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
...
@@ -140,7 +140,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
return
ObjectRestResponse
.
succ
(
flag
);
return
ObjectRestResponse
.
succ
(
flag
);
}
}
//设置密码type 1-设置密码;2-
设置
密码
//设置密码type 1-设置密码;2-
修改
密码
public
ObjectRestResponse
setPwd
(
Integer
userId
,
String
phone
,
String
mobilecod
,
String
password
,
Integer
type
){
public
ObjectRestResponse
setPwd
(
Integer
userId
,
String
phone
,
String
mobilecod
,
String
password
,
Integer
type
){
if
(
StringUtils
.
isBlank
(
phone
)||
StringUtils
.
isBlank
(
mobilecod
)||
StringUtils
.
isBlank
(
password
)){
if
(
StringUtils
.
isBlank
(
phone
)||
StringUtils
.
isBlank
(
mobilecod
)||
StringUtils
.
isBlank
(
password
)){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
...
@@ -156,7 +156,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
...
@@ -156,7 +156,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
if
(
myWallet
==
null
){
if
(
myWallet
==
null
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"钱包不存在"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"钱包不存在"
);
}
}
if
(
type
==
1
||
StringUtils
.
isNotBlank
(
myWallet
.
getPayPassword
())){
if
(
type
==
1
&&
StringUtils
.
isNotBlank
(
myWallet
.
getPayPassword
())){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
EXIST_CODE
,
"密码已存在"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
EXIST_CODE
,
"密码已存在"
);
}
}
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
password
);
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
password
);
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/MyWalletController.java
View file @
c58c2606
...
@@ -51,7 +51,7 @@ public class MyWalletController {
...
@@ -51,7 +51,7 @@ public class MyWalletController {
}
}
@GetMapping
@GetMapping
(
"/checkCode"
)
@ApiOperation
(
"检查验证码"
)
@ApiOperation
(
"检查验证码"
)
public
ObjectRestResponse
checkCode
(
public
ObjectRestResponse
checkCode
(
@RequestParam
(
value
=
"phone"
,
defaultValue
=
""
)
String
phone
,
@RequestParam
(
value
=
"phone"
,
defaultValue
=
""
)
String
phone
,
...
...
xx-app/xx-app-api/src/main/java/com/xxfc/platform/app/feign/ConfigFeign.java
View file @
c58c2606
...
@@ -17,6 +17,6 @@ public interface ConfigFeign {
...
@@ -17,6 +17,6 @@ public interface ConfigFeign {
@RequestMapping
(
value
=
"/cofig/app/unauth/types"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/cofig/app/unauth/types"
,
method
=
RequestMethod
.
GET
)
ObjectRestResponse
<
Cofig
>
getAllByType
(
String
types
);
ObjectRestResponse
<
Cofig
>
getAllByType
(
String
types
);
@GetMapping
(
"/app/unauth/withdraw_rule"
)
@GetMapping
(
"/
cofig/
app/unauth/withdraw_rule"
)
WithDrawRuleVo
getWithDrawRule
();
WithDrawRuleVo
getWithDrawRule
();
}
}
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/CofigBiz.java
View file @
c58c2606
...
@@ -39,13 +39,12 @@ public class CofigBiz extends BaseBiz<CofigMapper,Cofig> {
...
@@ -39,13 +39,12 @@ public class CofigBiz extends BaseBiz<CofigMapper,Cofig> {
* @param cofig
* @param cofig
* @return
* @return
*/
*/
@CacheClear
(
pre
=
"app:withdrawrule:"
,
key
=
"
config{1
}"
)
@CacheClear
(
pre
=
"app:withdrawrule:"
,
key
=
"
{1.type
}"
)
public
int
updateConfig
(
Cofig
cofig
)
{
public
int
updateConfig
(
Cofig
cofig
)
{
EntityUtils
.
setUpdatedInfo
(
cofig
);
EntityUtils
.
setUpdatedInfo
(
cofig
);
return
mapper
.
updateByPrimaryKeySelective
(
cofig
);
return
mapper
.
updateByPrimaryKeySelective
(
cofig
);
}
}
@Cache
(
key
=
"app:withdrawrule:88"
)
public
WithDrawRuleVo
getWithDrawRule
(){
public
WithDrawRuleVo
getWithDrawRule
(){
WithDrawRuleVo
withDrawRuleVo
=
new
WithDrawRuleVo
();
WithDrawRuleVo
withDrawRuleVo
=
new
WithDrawRuleVo
();
Example
example
=
new
Example
(
Cofig
.
class
);
Example
example
=
new
Example
(
Cofig
.
class
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment