1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\models\user;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- class UserTaskFinish extends BaseModel
- {
-
- protected $pk = 'id';
-
- protected $name = 'user_task_finish';
- use ModelTrait;
-
- public static function setFinish($uid,$task_id)
- {
- $add_time=time();
- if(self::be(['uid'=>$uid,'task_id'=>$task_id])) return true;
- return self::create(compact('uid','task_id','add_time'));
- }
- }
|