| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_fullordertt extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'fullordertt';
- $this->load_table('fullordertt');
- }
- /** 通过API查找 */
- public function get_api($api)
- {
- return $this->find("api = '$api'");
- }
- public function get_number($number)
- {
- return $this->find("number = '$number'");
- }
- public function get_orderinfo($orderinfo)
- {
- return $this->find("orderinfo = '$orderinfo'");
- }
- public function get_waybill($waybill)
- {
- return $this->find("waybill = '$waybill'");
- }
- public function get_rpaypal($rpaypal)
- {
- return $this->find("rpaypal = '$rpaypal'");
- }
- public function get_paypal($paypal)
- {
- return $this->find("paypal = '$paypal'");
- }
- public function get_time($time)
- {
- $dt = 3600;
- return date('Y-m-d H:i:s',$time+$dt);
- }
- public function getCateOne(){
- return [
- '1'=>'常规订单',
- '2'=>'直播订单',
- '3'=>'样品订单',
- '4'=>'售后订单',
- '5'=>'网红订单',
- ];
- }
- public function getCateTwo(){
- return [
- '1'=>[],
- '2'=>[
- '1'=>'工厂直播间',
- '2'=>'公司直播间',
- '3'=>'郑州直播间',
- ],
- '3'=>[
- '1'=>'0元样品',
- '2'=>'自费样品',
- ],
- '4'=>[
- '1'=>'无退货订单',
- '2'=>'有退货订单'
- ],
- '5'=>[]
- ];
- }
- } //end class
|