Commit d29c487c by jomon

code review changes

parent 3854e047
......@@ -36,14 +36,14 @@ class SiteController extends Controller
$client = new Client();
$response = $client->createRequest()
->setMethod('get')
->setUrl('http://libromi.yii/api/v1/business/view')
->setData(['id' => '2'])
->setUrl('http://libromi.com/api/v1/business/view')
->setData(['id' => '3997'])
->send();
// echo '<pre>';
// var_dump($response);
// echo '</pre>';
// exit;
$data = $response->isOk ? $response->data['name'] : ['dfsdfsd'];
$data = $response->isOk ? $response->data : [];
return $this->render('index', ['data' => $data]);
}
......
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 to comment