30 行
748 B
PHP
可执行文件
30 行
748 B
PHP
可执行文件
<?php
|
|
|
|
namespace Retail\Controller;
|
|
|
|
use \Common\Model\RetailMaiyatianOrderModel;
|
|
|
|
class MaiyatianController extends BaseController
|
|
{
|
|
public function index()
|
|
{
|
|
$arr = [
|
|
'search' => '/index.php/Retail/Maiyatian/index',
|
|
'orderExport' => '/index.php/Retail/Maiyatian/export'
|
|
];
|
|
$authArr = checkFunction($arr);
|
|
$this->assign('authArr', $authArr);
|
|
$this->display();
|
|
}
|
|
|
|
//码科订单
|
|
public function maiyatianOrder()
|
|
{
|
|
$data = I('post.');
|
|
$data['store_id'] = $this->store_id;
|
|
$order = new RetailMaiyatianOrderModel();
|
|
$result = $order->orderRecord($data);
|
|
$this->ajaxReturn($result);
|
|
}
|
|
}
|