Model_qrcode.php 583 B

1234567891011121314151617181920212223
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_qrcode extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'qrcode';
  8. $this->load_table('qrcode');
  9. }
  10. /** 通过API查找 */
  11. public function get_shop($shop)
  12. {
  13. return $this->find("shop = '$shop'");
  14. }
  15. public function get_number($number)
  16. {
  17. return $this->find("number = '$number'");
  18. }
  19. public function get_warehouse($warehouse)
  20. {
  21. return $this->find("warehouse = '$warehouse'");
  22. }
  23. } //end class