Browse Source

修改了请求域名

master
tanghuijun 4 years ago
parent
commit
1c58a87509
  1. 6
      app/api/controller/Goods.php

6
app/api/controller/Goods.php

@ -53,7 +53,7 @@ class Goods extends Base
public function getTypeGoods(){
try {
$params = ['type'=> 1];
$result = $this->curl_request_post('http://www.wenhuayun.com/index.php/api/goods/getTypeGoods', $params);
$result = $this->curl_request_post(env('APP.HOST').'/index.php/api/goods/getTypeGoods', $params);
return $result;
}catch(\Exception $e){
return _error($e->getMessage(), $e->getCode() ?: 400, $e);
@ -91,7 +91,9 @@ class Goods extends Base
}
}
/**
* 排行榜递增
* 排行榜统计
* @url /api/Goods/incrRanking
* @method POST
*/
public function incrRanking()
{

Loading…
Cancel
Save