Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
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
tencent
services
Commits
060f7edb
Commit
060f7edb
authored
Jun 04, 2020
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ft-tuiyunfei' into test
parents
601f8d32
3c961696
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
src/Recharge/Lib/RechargeInterface.php
+11
-0
src/V2/Common/Config/CfgCenter.php
+2
-2
No files found.
src/Recharge/Lib/RechargeInterface.php
View file @
060f7edb
...
...
@@ -71,6 +71,17 @@ interface RechargeInterface
public
function
ReturnCardMoney
(
int
$storeId
,
int
$buyerId
,
int
$itemOrderId
,
string
$itemTitle
,
int
$payMoney
,
int
$parentOrderId
);
/**
* 修改用户储值卡余额
*
* @param integer $storeId
* @param integer $buyerId
* @param integer $amount 需要增加或减少的金额
* @param integer $type 1:默认 减额度,增消费额度 2:增额度,减消费额度
* @return void
*/
public
function
updateAmount
(
int
$storeId
,
int
$buyerId
,
int
$amount
,
int
$type
);
/**
* 统计储值卡上架数/总数
* @param int $storeId
* @return mixed
...
...
src/V2/Common/Config/CfgCenter.php
View file @
060f7edb
...
...
@@ -212,9 +212,9 @@ class CfgCenter
if
(
$valArr
)
{
//有内容时进行redis缓存
if
(
is_array
(
$valArr
))
{
$valArr
[
'oemId'
]
=
$oemId
;
//需要将oemId加入配置返回
Redis
::
set
(
$prefix
.
$keyName
,
json_encode
(
$valArr
),
360
0
);
Redis
::
set
(
$prefix
.
$keyName
,
json_encode
(
$valArr
),
6
0
);
}
else
{
Redis
::
set
(
$prefix
.
$keyName
,
$valArr
,
360
0
);
Redis
::
set
(
$prefix
.
$keyName
,
$valArr
,
6
0
);
}
}
return
$valArr
;
...
...
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