1234567891011121314151617181920212223 |
- <?php
- namespace app\common\model;
- use think\db\Query;
- use think\Model;
- /**
- * 短信验证码
- */
- class UserVerification Extends Model
- {
- protected $autoWriteTimestamp=true;
- protected $createTime='created_at';
- protected $updateTime='updated_at';
- public function user(){
- return $this->belongsTo(User::class);
- }
- public function apply(): bool
- {
- return in_array($this['status'],[2]);
- }
- }
|