Commit 92a5b7e0e35bcc7b2c22de4c4c50f7365d3dd06b
1 parent
0482e3d3
ga fix
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/GaController.php
| ... | ... | @@ -53,7 +53,7 @@ class GaController extends CrudResourceController { |
| 53 | 53 | $project = Project::findFirst(['ga_view_id' => $view_id]); |
| 54 | 54 | $result = $this->sendGaRequest($project->name , $view_id, $get_metrics, $get_dimensions, $get_start_date, $get_end_date, $chart); |
| 55 | 55 | } |
| 56 | - return $result; | |
| 56 | + return '123'; | |
| 57 | 57 | |
| 58 | 58 | } |
| 59 | 59 | |
| ... | ... | @@ -150,14 +150,14 @@ class GaController extends CrudResourceController { |
| 150 | 150 | foreach ($response as $item) { |
| 151 | 151 | |
| 152 | 152 | $metric_val = $item['metrics'][0]['values']; |
| 153 | - $result['name'] = $project_name.'!'; | |
| 153 | + $result['name'] = $project_name; | |
| 154 | 154 | |
| 155 | 155 | if (count($metric_val) > 1) { |
| 156 | 156 | for ($i = 0; $i < count($metric_val); $i++) { |
| 157 | 157 | $result['data'][] = (int)$metric_val[$i]; |
| 158 | 158 | } |
| 159 | 159 | } else { |
| 160 | - $result['data'][] = (float)$metric_val[0]; | |
| 160 | + $result['data'][] = (int)$metric_val[0]; | |
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | ... | ... |