Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
88ebafb5
Commit
88ebafb5
authored
Mar 13, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
3443e16a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
bigdata/app/base/api/impl/auth/accessAuth.js
+9
-0
bigdata/app/base/service/impl/auth/userSve.js
+2
-2
bigdata/app/config/localsettings.js
+4
-4
No files found.
bigdata/app/base/api/impl/auth/accessAuth.js
View file @
88ebafb5
...
@@ -977,3 +977,11 @@ module.exports = AccessAuthAPI;
...
@@ -977,3 +977,11 @@ module.exports = AccessAuthAPI;
// ff.then((v)=>{
// ff.then((v)=>{
// console.log(v);
// console.log(v);
// })
// })
// var req={app:{appkey:"wx76a324c5d201d1a4"}};
// var p={mobile:"18610915380"};
// var x=new AccessAuthAPI();
// var ff=x.deleteUserForTest(p,null,req);
// ff.then((v)=>{
// console.log(v);
// })
\ No newline at end of file
bigdata/app/base/service/impl/auth/userSve.js
View file @
88ebafb5
...
@@ -13,8 +13,8 @@ class UserService extends ServiceBase {
...
@@ -13,8 +13,8 @@ class UserService extends ServiceBase {
}
}
//按照电话号码,删除账号
//按照电话号码,删除账号
async
deleteUserForTest
(
obj
){
async
deleteUserForTest
(
obj
){
await
this
.
db
.
models
.
user
.
destroy
({
where
:{
mobile
:
obj
.
mobile
,
app_id
:
2
}});
await
this
.
db
.
models
.
user
.
destroy
({
force
:
true
,
where
:{
mobile
:
obj
.
mobile
,
app_id
:
2
}});
await
this
.
db
.
models
.
account
.
destroy
({
where
:{
userName
:
obj
.
mobile
}});
await
this
.
db
.
models
.
account
.
destroy
({
force
:
true
,
where
:{
userName
:
obj
.
mobile
}});
return
{};
return
{};
}
}
//按照电话和密码查询出用户
//按照电话和密码查询出用户
...
...
bigdata/app/config/localsettings.js
View file @
88ebafb5
...
@@ -7,11 +7,11 @@ var settings = {
...
@@ -7,11 +7,11 @@ var settings = {
},
},
database
:
{
database
:
{
dbname
:
"paas"
,
dbname
:
"paas"
,
user
:
"
root
"
,
user
:
"
write
"
,
password
:
"
123456
"
,
password
:
"
write
"
,
config
:
{
config
:
{
host
:
'
192.168.4.119
'
,
host
:
'
43.247.184.35
'
,
port
:
3306
,
port
:
8899
,
dialect
:
'mysql'
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
operatorsAliases
:
false
,
pool
:
{
pool
:
{
...
...
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