12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_fullordersmt extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'fullordersmt';
- $this->load_table('fullordersmt');
- }
- /** 通过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);
- }
- } //end class
|