Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
9cff256a
Commit
9cff256a
authored
Feb 01, 2019
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试用期店铺考核
parent
12db9a57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
StoreUtil.php
application/library/Store/StoreUtil.php
+3
-3
StoreService.php
application/models/Business/Store/StoreService.php
+2
-2
No files found.
application/library/Store/StoreUtil.php
100755 → 100644
View file @
9cff256a
...
...
@@ -133,7 +133,7 @@ class StoreUtil {
$addKey
=
\Our\Common
::
getConfig
(
'password.key'
);
$payLogList
=
array
();
$newChargeList
=
array
();
foreach
(
$list
as
$class
){
foreach
(
$list
as
$class
){
$paySn
=
date
(
'YmdHis'
)
.
$this
->
createncode
(
18
);
$storeId
=
$class
[
'store_id'
];
$payLog
=
array
();
...
...
@@ -160,9 +160,9 @@ class StoreUtil {
$payLog
[
'pay_amount'
]
=
0
;
$chargeLog
[
'gmt_create'
]
=
$currentTime
;
$chargeLog
[
'gmt_update'
]
=
$currentTime
;
$chargeLog
[
'service_fee_sign'
]
=
md5
(
$currentTime
,
$chargeLog
[
'service_fee'
],
$addKey
);
$chargeLog
[
'service_fee_sign'
]
=
md5
(
$currentTime
.
$chargeLog
[
'service_fee'
]
.
$addKey
);
$newChargeList
[]
=
$chargeLog
;
$resultClass
=
$qmStoreClassModel
->
update
(
array
(
'deadline'
=>
$chargeLog
[
'new_end_time'
],
'deadline_sign'
=>
md5
(
$class
[
'gmt_create'
]
,
$chargeLog
[
'new_end_time'
],
$addKey
),
'gmt_update'
=>
$currentTime
),
array
(
'gc_id'
=>
$chargeLog
[
'gc_id'
],
'store_id'
=>
$chargeLog
[
'store_id'
]));
$resultClass
=
$qmStoreClassModel
->
update
(
array
(
'deadline'
=>
$chargeLog
[
'new_end_time'
],
'deadline_sign'
=>
md5
(
$class
[
'gmt_create'
]
.
$chargeLog
[
'new_end_time'
]
.
$addKey
),
'gmt_update'
=>
$currentTime
),
array
(
'gc_id'
=>
$chargeLog
[
'gc_id'
],
'store_id'
=>
$chargeLog
[
'store_id'
]));
if
(
$resultClass
===
false
){
$qmStoreClassModel
->
db
->
doRollback
();
}
...
...
application/models/Business/Store/StoreService.php
View file @
9cff256a
...
...
@@ -1344,10 +1344,10 @@ class StoreServiceModel extends \Business\AbstractModel{
foreach
(
$stores
as
$store
)
{
if
(
$store
[
'amount'
]
>=
400
)
{
//自动免费续费 当前签约分类租金2个月
$storeUtil
->
calcChargeMoney
(
array
(
'month'
=>
2
,
'store_end_time'
=>
$store
[
'store_end_time'
],
'contract_time'
=>
$store
[
'contract_time'
]
));
$storeUtil
->
calcChargeMoney
(
array
(
$store
[
'store_id'
]
=>
array
(
'month'
=>
2
,
'store_end_time'
=>
$store
[
'store_end_time'
],
'contract_time'
=>
$store
[
'contract_time'
])
));
}
elseif
(
$store
[
'amount'
]
>=
300
)
{
//自动免费续费 当前签约分类租金1个月
$storeUtil
->
calcChargeMoney
(
array
(
'month'
=>
1
,
'store_end_time'
=>
$store
[
'store_end_time'
],
'contract_time'
=>
$store
[
'contract_time'
]
));
$storeUtil
->
calcChargeMoney
(
array
(
$store
[
'store_id'
]
=>
array
(
'month'
=>
1
,
'store_end_time'
=>
$store
[
'store_end_time'
],
'contract_time'
=>
$store
[
'contract_time'
])
));
}
// elseif ($store['amount'] < 30) {
// //查看是否有签约分类续费记录
...
...
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