Commit 122c913a by 叶明星

㕛修复

parent 4edd648f
Showing with 4 additions and 4 deletions
......@@ -28,7 +28,7 @@ class IntegralService
foreach ($result['data'] as $key => $value) {
switch ($value['id']) {
case self::INTEGRAL_TYPE_INVITE_FRIEND:
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
if(isset($value['operated_count']) && isset($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去邀请';
}else{
......@@ -36,7 +36,7 @@ class IntegralService
}
break;
case self::INTEGRAL_TYPE_UPLOAD_GOODS:
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
if(isset($value['operated_count']) && isset($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去上传';
}else{
......@@ -51,7 +51,7 @@ class IntegralService
$result['data'][$key]['code_exchanged'] = $exchanged;
break;
case self::INTEGRAL_TYPE_SHARE:
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
if(isset($value['operated_count']) && isset($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去分享';
}else{
......@@ -59,7 +59,7 @@ class IntegralService
}
break;
case self::INTEGRAL_TYPE_OFFER:
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
if(isset($value['operated_count']) && isset($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去报价';
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment