| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * Niushop商城系统 - 团队十年电商经验汇集巨献!
- * =========================================================
- * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
- * ----------------------------------------------
- * 官方网址: https://www.niushop.com
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
- * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
- * =========================================================
- */
- namespace app\shopapi\controller;
- use app\model\order\LocalOrder as LocalOrderModel;
- /**
- * 外卖订单
- * Class Order
- * @package app\shop\controller
- */
- class Localorder extends BaseApi
- {
- public function __construct()
- {
- //执行父类构造函数
- parent::__construct();
- $token = $this->checkToken();
- if ($token[ 'code' ] < 0) {
- echo $this->response($token);
- exit;
- }
- }
- /**
- * 发货
- * @return false|string
- */
- public function delivery()
- {
- $order_id = isset($this->params[ 'order_id' ]) ? $this->params[ 'order_id' ] : 0;
- $deliverer = isset($this->params[ 'deliverer' ]) ? $this->params[ 'deliverer' ] : '';
- $deliverer_mobile = isset($this->params[ 'deliverer_mobile' ]) ? $this->params[ 'deliverer_mobile' ] : '';
- $local_order_model = new LocalOrderModel();
- $data = [
- 'order_id' => $order_id,
- 'deliverer' => $deliverer,
- 'deliverer_mobile' => $deliverer_mobile,
- 'site_id' => $this->site_id
- ];
- $result = $local_order_model->orderGoodsDelivery($data);
- return $this->response($result);
- }
- }
|