1234567891011121314151617181920212223 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_qrcode extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'qrcode';
- $this->load_table('qrcode');
- }
- /** 通过API查找 */
- public function get_shop($shop)
- {
- return $this->find("shop = '$shop'");
- }
- public function get_number($number)
- {
- return $this->find("number = '$number'");
- }
- public function get_warehouse($warehouse)
- {
- return $this->find("warehouse = '$warehouse'");
- }
- } //end class
|