|
@@ -61,16 +61,16 @@ class DetailTransformer extends TransformerAbstract
|
|
|
private function getFunction(InterestCircle $interestCircle)
|
|
|
{
|
|
|
$functions = json_decode($interestCircle['contains_function'], true);
|
|
|
- $info['members'] = ['is_open' => 1, 'extra' => (string)getNumber($interestCircle['join_count'])];
|
|
|
- $info['pictures'] = ['is_open' => 0, 'extra' => '0'];
|
|
|
- $info['chatroom'] = ['is_open' => 0, 'extra' => '0'];
|
|
|
+ $info['members'] = ['is_open' => 1, 'extra' => intval($interestCircle['join_count'])];
|
|
|
+ $info['pictures'] = ['is_open' => 0, 'extra' => 0];
|
|
|
+ $info['chatroom'] = ['is_open' => 0, 'extra' => ''];
|
|
|
if (empty($functions)) {
|
|
|
return $info;
|
|
|
}
|
|
|
foreach ($functions as &$func) {
|
|
|
if ('pictures' == $func['function']) {
|
|
|
if (1 == $func['is_open']) {
|
|
|
- $info['pictures'] = ['is_open' => 1, 'extra' => (string)getNumber($interestCircle['picture_count'])];
|
|
|
+ $info['pictures'] = ['is_open' => 1, 'extra' => intval($interestCircle['picture_count'])];
|
|
|
}
|
|
|
}
|
|
|
if ('chatroom' == $func['function']) {
|