Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
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
zhangjun
User
Commits
448d61d5
Commit
448d61d5
authored
Aug 08, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5d607f67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
user.php
center/controllers/user.php
+19
-10
No files found.
center/controllers/user.php
View file @
448d61d5
...
...
@@ -1925,9 +1925,15 @@ class User extends MY_Controller
$price
=
$price
*
0.01
;
}
// 付款方式
$payType
=
$price
<=
0
?
'zeroyuanpay'
:
$payType
;
//校验参数正确性
if
(
$packageType
!=
$packageData
[
'package_type'
]
||
empty
(
$price
)
||
$price
<=
0
){
return
$this
->
jump
(
USER_CENTER
,
'套餐价格数据异常'
,
3000
,
'warning'
);
// if($packageType != $packageData['package_type'] || empty($price) || $price <= 0){
// return $this->jump(USER_CENTER,'套餐价格数据异常',3000,'warning');
// }
if
(
$packageType
!=
$packageData
[
'package_type'
]){
return
$this
->
jump
(
USER_CENTER
,
'套餐数据异常'
,
3000
,
'warning'
);
}
if
(
$packageType
==
1
&&
(
$packageKeyword
!=
$packageData
[
'package_keyword'
]
||
$packageKeyword
<=
0
)
){
return
$this
->
jump
(
USER_CENTER
,
'套餐关键词异常'
,
3000
,
'warning'
);
...
...
@@ -2019,16 +2025,19 @@ class User extends MY_Controller
if
(
isset
(
$use_coupon
)
&&
$use_coupon
==
1
)
{
$this
->
user_model
->
useCoupon
(
$orderData
[
'transaction_id'
],
$this
->
user_id
,
$coupon_id
,
$price
,
$packageType
);
//支付成功后的操作
$result
=
$this
->
package_model
->
payFinish
(
$orderData
,
array
(
'transaction_id'
=>
'000000000000000'
)
);
if
(
$result
){
if
(
GB_CITY
==
'nj'
)
{
$this
->
sendMsg
(
$orderData
);
// 0元支付
if
(
$price
<=
0
)
{
//支付成功后的操作
$result
=
$this
->
package_model
->
payFinish
(
$orderData
,
array
(
'transaction_id'
=>
'000000000000000'
));
if
(
$result
)
{
if
(
GB_CITY
==
'nj'
)
{
$this
->
sendMsg
(
$orderData
);
}
}
$data
[
'orderData'
]
=
$orderData
;
$data
[
'title'
]
=
'0元支付'
;
$this
->
load
->
view
(
'zero_yuan_pay'
,
$data
);
}
$data
[
'orderData'
]
=
$orderData
;
$data
[
'title'
]
=
'0元支付'
;
$this
->
load
->
view
(
'zero_yuan_pay'
,
$data
);
}
}
...
...
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