feat: init project codebase
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
use EasyWeChat\Foundation\Application as OfficialAccount;
|
||||
|
||||
/**
|
||||
* DNA检测系统微信授权入口首页
|
||||
* @author luoxuancai
|
||||
*/
|
||||
class Test extends CI_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->library('session');
|
||||
$this->load->model('customer_model');
|
||||
}
|
||||
|
||||
// 中通快递查询
|
||||
public function zto()
|
||||
{
|
||||
$this->load->model('zto_model');
|
||||
//$ret_search = $this->zto_model->commonOrderSearchbycode('200310051678942109','29');
|
||||
//$ret_search = $this->zto_model->commonOrderSearchbycode('200311000100544107','27');
|
||||
//$ret_search = $this->zto_model->commonOrderSearchbycode('200311000276939109','49');
|
||||
//print_r($ret_search);
|
||||
/*
|
||||
if($ship_order){
|
||||
$track = $this->zto_model->traceInterfaceNewTraces($ship_order['order_code']);
|
||||
}*/
|
||||
$track = $this->zto_model->traceInterfaceNewTraces(73127201209703);
|
||||
print_r($track);
|
||||
}
|
||||
|
||||
// 中通
|
||||
public function zto_query()
|
||||
{
|
||||
$this->load->model('zto_model');
|
||||
$this->zto_model->commonOrderSearchbycode('200210000005196104','1');
|
||||
}
|
||||
|
||||
// 测试顺丰
|
||||
public function sf()
|
||||
{
|
||||
$this->load->model('sf_express_model');
|
||||
$data = [
|
||||
'trade_id'=>'2020041903',
|
||||
'province'=>'上海市',
|
||||
'city'=>'上海市',
|
||||
'district'=>'嘉定区',
|
||||
'name'=>'测试',
|
||||
'tel'=>'15815725225',
|
||||
'address'=>'黄浦江晓东楼房',
|
||||
];
|
||||
$ret = $this->sf_express_model->shipSample($data);
|
||||
print_r($ret);die;
|
||||
//$this->sf_express_model->test();
|
||||
}
|
||||
|
||||
// 测试顺丰
|
||||
public function sf2()
|
||||
{
|
||||
$this->load->model('sf_express_model');
|
||||
$data = [
|
||||
'user_id'=>'1',
|
||||
'trade_id'=>'2020041903',
|
||||
'province'=>'上海市',
|
||||
'city'=>'上海市',
|
||||
'district'=>'嘉定区',
|
||||
'name'=>'测试',
|
||||
'tel'=>'15815725225',
|
||||
'address'=>'黄浦江晓东楼房',
|
||||
];
|
||||
$this->sf_express_model->test($data);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user