Commit 4edd648f by 叶明星

修复

parent 36f43574
Showing with 8 additions and 8 deletions
......@@ -28,16 +28,16 @@ class IntegralService
foreach ($result['data'] as $key => $value) {
switch ($value['id']) {
case self::INTEGRAL_TYPE_INVITE_FRIEND:
if(!empty($value['operated_count']) && !empty($value['operated_count']) &&
$value['operated_count'] < $value['operated_count']){
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去邀请';
}else{
$result['data'][$key]['button_text'] = '已完成';
}
break;
case self::INTEGRAL_TYPE_UPLOAD_GOODS:
if(!empty($value['operated_count']) && !empty($value['operated_count']) &&
$value['operated_count'] < $value['operated_count']){
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去上传';
}else{
$result['data'][$key]['button_text'] = '已完成';
......@@ -51,16 +51,16 @@ class IntegralService
$result['data'][$key]['code_exchanged'] = $exchanged;
break;
case self::INTEGRAL_TYPE_SHARE:
if(!empty($value['operated_count']) && !empty($value['operated_count']) &&
$value['operated_count'] < $value['operated_count']){
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去分享';
}else{
$result['data'][$key]['button_text'] = '已完成';
}
break;
case self::INTEGRAL_TYPE_OFFER:
if(!empty($value['operated_count']) && !empty($value['operated_count']) &&
$value['operated_count'] < $value['operated_count']){
if(!empty($value['operated_count']) && !empty($value['daily_limit']) &&
$value['operated_count'] < $value['daily_limit']){
$result['data'][$key]['button_text'] = '去报价';
}else{
$result['data'][$key]['button_text'] = '已完成';
......
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