Authored by Rock Zhang

修复php版本导致的函数不兼容的bug

@@ -162,7 +162,7 @@ class UserModel @@ -162,7 +162,7 @@ class UserModel
162 $product['price'] = '¥'.$val['market_price']; 162 $product['price'] = '¥'.$val['market_price'];
163 $product['discountPrice'] = '¥'.$val['sales_price']; 163 $product['discountPrice'] = '¥'.$val['sales_price'];
164 $product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false; 164 $product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false;
165 - $product['sellOut'] = boolval($val['price_down']); 165 + $product['sellOut'] = (bool)($val['price_down']);
166 166
167 $result[] = $product; 167 $result[] = $product;
168 } 168 }
@@ -432,7 +432,7 @@ class UserModel @@ -432,7 +432,7 @@ class UserModel
432 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240); 432 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
433 $one['title'] = $val['filter_content']; 433 $one['title'] = $val['filter_content'];
434 $one['content'] = $val['reply_content']; 434 $one['content'] = $val['reply_content'];
435 - $one['good'] = boolval($val['is_reliable']); 435 + $one['good'] = (bool)($val['is_reliable']);
436 $one['bad'] = !$one['good']; 436 $one['bad'] = !$one['good'];
437 437
438 $result[] = $one; 438 $result[] = $one;