|
@@ -10,6 +10,7 @@ class Returns extends Start_Controller {
|
|
$this->load->_model('Model_fullordertt','fullordertt');
|
|
$this->load->_model('Model_fullordertt','fullordertt');
|
|
$this->load->_model('Model_fullordersmt','fullordersmt');
|
|
$this->load->_model('Model_fullordersmt','fullordersmt');
|
|
$this->load->_model('Model_excel','excel');
|
|
$this->load->_model('Model_excel','excel');
|
|
|
|
+ $this->load->_model('Model_logic_order','logic_order');
|
|
}
|
|
}
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -46,11 +47,36 @@ class Returns extends Start_Controller {
|
|
{
|
|
{
|
|
$this->_qr();
|
|
$this->_qr();
|
|
}
|
|
}
|
|
|
|
+ else if($arg == 'csao'){
|
|
|
|
+ $this->_checkShopAndOrder();
|
|
|
|
+ }
|
|
else
|
|
else
|
|
{
|
|
{
|
|
$this->_index();
|
|
$this->_index();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function _checkShopAndOrder(){
|
|
|
|
+ $shop = $this->input->post('shop',true);
|
|
|
|
+ $number = $this->input->post('number',true);
|
|
|
|
+ $info = $this->logic_order->getInfo(" number = '".$number."'",$field = "*");
|
|
|
|
+ if(empty($info)){
|
|
|
|
+ die(json_encode([
|
|
|
|
+ 'code'=>-1,
|
|
|
|
+ 'msg'=>"订单不存在!!!"
|
|
|
|
+ ],JSON_UNESCAPED_UNICODE));
|
|
|
|
+ }
|
|
|
|
+ if($info['shop'] != $shop){
|
|
|
|
+ die(json_encode([
|
|
|
|
+ 'code'=>-1,
|
|
|
|
+ 'msg'=>"订单和店铺不一致!!!"
|
|
|
|
+ ],JSON_UNESCAPED_UNICODE));
|
|
|
|
+ }
|
|
|
|
+ die(json_encode([
|
|
|
|
+ 'code'=>1,
|
|
|
|
+ 'msg'=>"success"
|
|
|
|
+ ],JSON_UNESCAPED_UNICODE));
|
|
|
|
+ }
|
|
|
|
|
|
public function _index()
|
|
public function _index()
|
|
{
|
|
{
|