Model_express_tt.php 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. $shop_info = $this->db->from('shop')->where('id', $info['shop'])->get()->row();
  9. if(empty($shop_info)){
  10. return $g = [
  11. 'x'=>0,
  12. 'Description'=>'该商铺不存在',
  13. ];
  14. }
  15. $order_info = $this->getDetail($info['orderinfo'],$shop_info);
  16. }
  17. //查询信息
  18. private function getDetail($orderinfo,$shop){
  19. $res = $this->apitt->get_data([$orderinfo],$shop);
  20. echo "<pre>";
  21. print_r($res);
  22. die;
  23. }
  24. //获取订单承运的快递商
  25. private function getExpressCompany(){
  26. }
  27. //创建发货单和运单标签
  28. private function createExpressLabel(){
  29. }
  30. //下载快递面单
  31. private function downloadExpressLabel(){
  32. }
  33. }