Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
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
bp
goods
Commits
40f8b230
Commit
40f8b230
authored
Sep 16, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: safe_mode接口
parent
a4899e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
Marketing.php
application/modules/Marketing/controllers/Marketing.php
+26
-0
No files found.
application/modules/Marketing/controllers/Marketing.php
View file @
40f8b230
...
...
@@ -285,4 +285,30 @@ class MarketingController extends Base
$lists
=
MarketingService
::
yingxiaoList
(
$this
->
params
);
$this
->
success
([
'result'
=>
$lists
]);
}
/**
* 小程序审核查询设置safe_mode版本号
* @throws Exception
*/
public
function
get_small_program_configAction
()
{
$redis
=
RedisUtil
::
getInstance
(
'cache'
,[
'serializer'
=>
'none'
]);
$key
=
"small_program_config"
;
$value
=
$redis
->
get
(
$key
);
$this
->
success
([
'result'
=>
$value
]);
}
/**
* 小程序审核设置safe_mode版本号
* @throws Exception
*/
public
function
set_small_program_configAction
()
{
$params
=
$this
->
params
;
$cvVersion
=
empty
(
$params
[
"version"
])
?
""
:
$params
[
"version"
];
$redis
=
RedisUtil
::
getInstance
(
'cache'
,[
'serializer'
=>
'none'
]);
$key
=
"small_program_config"
;
$res
=
$redis
->
set
(
$key
,
$cvVersion
);
$this
->
success
([
'result'
=>
$res
]);
}
}
\ No newline at end of file
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