| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 | 
							- <?php
 
- namespace app\admin\controller\life;
 
- use app\admin\controller\BaseController;
 
- use app\admin\server\life\FarmGoodsServer;
 
- use app\admin\server\life\FarmOrderServer;
 
- use app\admin\server\life\FoodOrderServer;
 
- class FarmOrder extends BaseController
 
- {
 
-     /**
 
-      * Notes:获取订单列表
 
-      * @return \support\Response
 
-      * User: QJF
 
-      * Date: 2022/11/04
 
-      */
 
-     public function getOrderList()
 
-     {
 
-         [$page, $limit] = $this->getPage();
 
-         $keywords = $this->request->get('keywords');
 
-         $result         = FarmOrderServer::getOrderList($page,$limit,$keywords);
 
-         return json_success($result, '成功');
 
-     }
 
-     /**
 
-      * Notes:订单详情
 
-      * @return \support\Response
 
-      * User: QJF
 
-      * Date: 2022/11/04
 
-      */
 
-     public function orderInfo()
 
-     {
 
-         $order_id = $this->request->get('order_id');
 
-         $result         = FarmOrderServer::orderInfo($order_id);
 
-         if ($result){
 
-             return json_success($result, '获取成功');
 
-         }else{
 
-             throw new \Exception('获取失败!');
 
-         }
 
-     }
 
-     /**
 
-      * Notes:订单发货
 
-      * @return \support\Response
 
-      * User: QJF
 
-      * Date: 2022/11/04
 
-      */
 
-     public function orderDelivery()
 
-     {
 
-         $param = $this->request->post();
 
-         $admin_id = $this->request->admin_id;
 
-         $result         = FarmOrderServer::orderDelivery($param,$admin_id);
 
-         if ($result){
 
-             return json_success($result, '获取成功');
 
-         }else{
 
-             throw new \Exception('获取失败!');
 
-         }
 
-     }
 
-     /**
 
-      * Notes:修改订单支付状态
 
-      * @return \support\Response
 
-      * User: YCP
 
-      * Date: 2022/11/28
 
-      */
 
-     public function updatePayStatus()
 
-     {
 
-         $order_id = $this->request->post('order_id');
 
-         $order_pay_status = $this->request->post('order_pay_status');
 
-         if(!$order_id){
 
-             throw new \Exception('订单ID不能为空');
 
-         }
 
-         $result       = FarmOrderServer::updatePayStatus($order_id, $order_pay_status);
 
-         return json_success($result, '修改成功');
 
-     }
 
- }
 
 
  |