Choice.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php defined('BASEPATH') OR exit('No direct script access allowed');
  2. class Choice extends Start_Controller {
  3. public function __construct(){
  4. parent::__construct();
  5. $this->load->_model("Model_logic_order","logic_order");
  6. }
  7. //定义方法的调用规则 获取URI第二段值
  8. public function _remap($arg,$arg_array)
  9. {
  10. if($arg == 'Choices')
  11. {
  12. $this->_Choices($arg_array);
  13. }
  14. else if($arg == 'check_pm_sku')
  15. {
  16. $this->_checkCkpmAndSku();
  17. }
  18. else
  19. {
  20. $this->_Choice($arg);
  21. }
  22. }
  23. public function _Choice($arg)//查找重复
  24. {
  25. $this->data['arg'] = $arg;
  26. $this->_Template('choice',$this->data);
  27. }
  28. public function _Choices($arg){
  29. }
  30. public function _checkCkpmAndSku(){
  31. $fpdata = $this->input->post('fpdata', TRUE);
  32. $shipremarks = $this->input->post('shipremarks', TRUE);
  33. $r = $this->logic_order->checkCkpmAndSku($fpdata,$shipremarks);
  34. echo json_encode($r,JSON_UNESCAPED_UNICODE);
  35. }
  36. }