You've already forked qlg.tsgz.moe
购物车分类
This commit is contained in:
16
hyhproject/common/model/UserLevel.php
Normal file
16
hyhproject/common/model/UserLevel.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace wstmart\common\model;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class UserLevel extends Base{
|
||||
public function getShareNum($where){
|
||||
return $this->where($where)->count();
|
||||
}
|
||||
public function getField($where,$field='pid'){
|
||||
return $this->where($where)->value($field);
|
||||
}
|
||||
public function getInfo($where,$field='pid'){
|
||||
return $this->where($where)->field($field)->find();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user