Model_express_tt.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. class Model_express_tt extends Lin_Model {
  3. function __construct(){
  4. parent::__construct();
  5. $this->load->_model("Model_apitt","apitt");
  6. }
  7. public function getData($info){
  8. if(empty($info)){
  9. return $g = [
  10. 'x'=>0,
  11. 'Description'=>'订单信息不存在',
  12. ];
  13. }
  14. $shop_info = $this->db->from('shop')->where('id', $info['shop'])->get()->result_array();
  15. if(empty($shop_info)){
  16. return $g = [
  17. 'x'=>0,
  18. 'Description'=>'该商铺不存在',
  19. ];
  20. }
  21. $order_info = $this->getDetail($info['orderinfo'],$shop_info[0]);
  22. }
  23. //查询信息
  24. private function getDetail($orderinfo,$shop){
  25. $res = $this->apitt->get_data([$orderinfo,'577147793197142978'],$shop);
  26. echo "<pre>";
  27. print_r($res);
  28. die;
  29. }
  30. //获取订单承运的快递商
  31. private function getExpressCompany(){
  32. }
  33. //创建发货单和运单标签
  34. private function createExpressLabel(){
  35. }
  36. //下载快递面单
  37. private function downloadExpressLabel(){
  38. }
  39. }