123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- class Model_express_tt extends Lin_Model {
- function __construct(){
- parent::__construct();
- $this->load->_model("Model_apitt","apitt");
- }
- public function getData($info){
- if(empty($info)){
- return $g = [
- 'x'=>0,
- 'Description'=>'订单信息不存在',
- ];
- }
- $shop_info = $this->db->from('shop')->where('id', $info['shop'])->get()->result_array();
-
- if(empty($shop_info)){
- return $g = [
- 'x'=>0,
- 'Description'=>'该商铺不存在',
- ];
- }
- $order_info = $this->getDetail($info['orderinfo'],$shop_info[0]);
- }
- //查询信息
- private function getDetail($orderinfo,$shop){
-
- $res = $this->apitt->get_data(['577147809833784067','577147808491737854'],$shop);
- echo "<pre>";
- print_r($res);
- die;
- }
- //获取订单承运的快递商
- private function getExpressCompany(){
- }
- //创建发货单和运单标签
- private function createExpressLabel(){
- }
- //下载快递面单
- private function downloadExpressLabel(){
- }
- }
|