|
|
|
@ -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() |
|
|
|
{ |
|
|
|
|