Commit 33bd27cd authored by shajiaiming's avatar shajiaiming

fix

parent d83474bf
......@@ -37,13 +37,13 @@ abstract class FactoryService
$params = json_encode($data);
$curl->setHeader('Content-Type', 'application/json');
$curl->setRawPostData($params);
#$res = $curl->post(\Yii::$app->params['biqianbao'].'/interface/coin/coin-index', true);
#$res = json_decode($res, true);
$res = $curl->post(\Yii::$app->params['biqianbao'].'/interface/coin/coin-index', true);
$res = json_decode($res, true);
#foreach ($res['data'] as $val) {
#$this->basic_price[$val['name']]['rmb'] = $val['rmb'];
#$this->basic_price[$val['name']]['usd'] = $val['usd'];
#}
foreach ($res['data'] as $val) {
$this->basic_price[$val['name']]['rmb'] = $val['rmb'];
$this->basic_price[$val['name']]['usd'] = $val['usd'];
}
$this->redis = \Yii::$app->redis;
$this->redis_ticker = \Yii::$app->redis_ticker;
......
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