123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Mbchaintoken extends BaseModel
- {
-
- public function getMbchaintokenInfo($condition)
- {
- return Db::name('mbchaintoken')->where($condition)->find();
- }
-
- public function getMbchaintokenInfoByToken($token)
- {
- if (empty($token)) {
- return null;
- }
- return $this->getMbchaintokenInfo(array('chain_token' => $token));
- }
-
- public function addMbchaintoken($data)
- {
- return Db::name('mbchaintoken')->insertGetId($data);
- }
-
- public function delMbchaintoken($condition)
- {
- return Db::name('mbchaintoken')->where($condition)->delete();
- }
- }
|