| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\api\model;
- use think\Model;
- class ThirdPayLog extends BaseModel
- {
- // 表名
- protected $name = 'third_pay_log';
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = 'integer';
- // 定义时间戳字段名
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
- protected $deleteTime = false;
- // 追加属性
- protected $append = [
- ];
- static function TPKey($no) {
- return "third:pay:$no";
- }
- public function getByNo($no) {
- return $this->where([
- "no" => $no,
- "status" => \E_BASE_STATUS::Default
- ])->find();
- }
- }
|