地图api
This commit is contained in:
@@ -11,7 +11,7 @@ class Goods extends ApiBase{
|
||||
*/
|
||||
public function getGoodsList(){
|
||||
$get = $this->request->get();
|
||||
$goods_list = GoodsLogic::getGoodsList($this->user_id, $get, $this->page_no, $this->page_size);
|
||||
$goods_list = GoodsLogic::getGoodsList($this->user_id, $get, $this->page_no, $this->page_size,$get['type']);
|
||||
$this->_success('获取成功',$goods_list);
|
||||
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ class GoodsCategory extends ApiBase{
|
||||
*/
|
||||
public function lists(){
|
||||
$client = $this->request->get('client',1);
|
||||
$cateogry = GoodsCategoryLogic::categoryThirdTree($client);
|
||||
$type = $this->request->get('type',1);
|
||||
$cateogry = GoodsCategoryLogic::categoryThirdTree($client,$type);
|
||||
|
||||
$this->_success('获取成功',$cateogry);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,12 @@ use app\common\server\Alisms;
|
||||
class Index extends ApiBase
|
||||
{
|
||||
public $like_not_need_login = ['test','sedx','lists','appInit', 'downLine', 'share', 'config','pcLists','goods_stay_time','send_sms','get_pege'];
|
||||
|
||||
|
||||
public function visit()
|
||||
{
|
||||
$this->_success('',['a'=>1]);
|
||||
}
|
||||
|
||||
//短信宝接口
|
||||
public function sedx(){
|
||||
$nowtime = time();
|
||||
|
||||
@@ -54,6 +54,9 @@ class Payment extends ApiBase
|
||||
switch ($post['from']) {
|
||||
case 'order':
|
||||
$order = Order::get($post['order_id']);
|
||||
if ($order == null) {
|
||||
$this->_error('订单不存在');
|
||||
}
|
||||
if ($order['order_status'] == CommonOrder::STATUS_CLOSE || $order['del'] == 1) {
|
||||
$this->_error('订单已关闭');
|
||||
}
|
||||
@@ -79,6 +82,11 @@ class Payment extends ApiBase
|
||||
}
|
||||
|
||||
if (PaymentLogic::getReturnCode() != 0) {
|
||||
/**
|
||||
* 支付成功
|
||||
* 添加对应商品积分
|
||||
*/
|
||||
|
||||
$this->_success('', $result, PaymentLogic::getReturnCode());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user