fix
This commit is contained in:
parent
6833673bd2
commit
72e5894447
@ -314,6 +314,10 @@ class RechargeController
|
|||||||
|
|
||||||
$todaysecs = phpcommon\getdayseconds(time());
|
$todaysecs = phpcommon\getdayseconds(time());
|
||||||
$daily_obj = json_decode($daily_purchase . true);
|
$daily_obj = json_decode($daily_purchase . true);
|
||||||
|
if (!$daily_obj) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if ($productid == 10) {
|
if ($productid == 10) {
|
||||||
foreach ($daily_obj as $item) {
|
foreach ($daily_obj as $item) {
|
||||||
if ($item['time'] > $todaysecs) {
|
if ($item['time'] > $todaysecs) {
|
||||||
@ -455,7 +459,10 @@ class RechargeController
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
$vip_info = array();
|
||||||
|
if ($rechargerow['vip_info'] != NULL) {
|
||||||
$vip_info = json_decode($rechargerow['vip_info'], true);
|
$vip_info = json_decode($rechargerow['vip_info'], true);
|
||||||
|
}
|
||||||
$found = false;
|
$found = false;
|
||||||
foreach ($vip_info as $key => $carditem) {
|
foreach ($vip_info as $key => $carditem) {
|
||||||
if ($carditem['id'] == $_REQUEST['goodsid']) {
|
if ($carditem['id'] == $_REQUEST['goodsid']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user