Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6d285e2d
authored
May 19, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改也去维护缓存
parent
b0241f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
app/Http/Controllers/Api/SupplierAccountApiController.php
app/Http/Controllers/Api/SupplierAccountApiController.php
View file @
6d285e2d
...
@@ -88,6 +88,9 @@ class SupplierAccountApiController extends Controller
...
@@ -88,6 +88,9 @@ class SupplierAccountApiController extends Controller
$model
=
new
SupplierAccountModel
();
$model
=
new
SupplierAccountModel
();
$result
=
$model
->
where
(
'id'
,
$data
[
'id'
])
->
update
(
$data
);
$result
=
$model
->
where
(
'id'
,
$data
[
'id'
])
->
update
(
$data
);
if
(
$result
)
{
if
(
$result
)
{
//还要插入一个redis
$redis
=
new
RedisModel
();
$redis
->
hset
(
'yunxin_api_user_mobile'
,
$data
[
'mobile'
],
$data
[
'id'
]);
$this
->
response
(
0
,
'修改成功'
);
$this
->
response
(
0
,
'修改成功'
);
}
}
$this
->
response
(
-
1
,
'修改失败'
,
$result
);
$this
->
response
(
-
1
,
'修改失败'
,
$result
);
...
...
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