Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bf27be19
...
bf27be195ef01c3dcf75066d4a58a6ec09e4fdfa
authored
2021-11-15 11:31:15 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
466035d7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
app/Helper/CacheKeyTools.php
app/Services/MusicianWithdrawService.php
config/cache.php
app/Helper/CacheKeyTools.php
View file @
bf27be1
...
...
@@ -29,9 +29,9 @@ class CacheKeyTools
/**
* @return mixed
*/
public
static
function
billsConfirm
(
$
busi_id
)
public
static
function
billsConfirm
(
$
serial_no
)
{
return
str_replace
(
'#
busi_id#'
,
$busi_id
,
config
(
'cache.key'
)[
'bills_confirm'
]);
return
str_replace
(
'#
serial_no#'
,
$serial_no
,
config
(
'cache.key'
)[
'bills_confirm'
]);
}
}
...
...
app/Services/MusicianWithdrawService.php
View file @
bf27be1
...
...
@@ -110,7 +110,7 @@ class MusicianWithdrawService extends Service
*/
public
function
billConfirm
()
{
if
(
RedisClient
::
instance
(
'bills'
)
->
set
(
CacheKeyTools
::
billsConfirm
(
$this
->
request
->
busi_id
),
true
,
'EX'
,
3
,
'NX'
))
{
if
(
RedisClient
::
instance
(
'bills'
)
->
set
(
CacheKeyTools
::
billsConfirm
(
$this
->
request
->
serial_no
),
true
,
'EX'
,
3
,
'NX'
))
{
$app
=
StakeholderIncomeSyncApp
::
query
()
->
where
([
'serial_no'
=>
$this
->
request
->
serial_no
,
'sync_status'
=>
0
])
->
select
([
'id'
,
'subject_no'
,
'company_id'
,
'stakeholder_id'
,
'related_id'
])
->
first
();
...
...
config/cache.php
View file @
bf27be1
...
...
@@ -111,7 +111,7 @@ return [
'key'
=>
[
'bills_sync'
=>
'bills:sync'
,
'channelname'
=>
'channelname'
,
'bills_confirm'
=>
'
busid:#busi_id
#'
,
'bills_confirm'
=>
'
serial:#serial_no
#'
,
]
];
...
...
Please
register
or
sign in
to post a comment