123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Mbsellertoken extends BaseModel {
-
- public function getMbsellertokenInfo($condition) {
- return Db::name('mbsellertoken')->where($condition)->find();
- }
-
-
- public function getMbsellertokenInfoByToken($token) {
- if (empty($token)) {
- return null;
- }
- return $this->getMbsellertokenInfo(array('seller_token' => $token));
- }
-
- public function addMbsellertoken($data) {
- return Db::name('mbsellertoken')->insertGetId($data);
- }
-
- public function delMbsellertoken($condition) {
- return Db::name('mbsellertoken')->where($condition)->delete();
- }
-
-
- }
|