|
@@ -40,8 +40,11 @@ class Apply extends Model
|
|
|
return $this->belongsTo('User','nid','id',[],"LEFT")/*->field('id,id_authentication,avatar,username,avatar')*/;
|
|
|
}
|
|
|
/**
|
|
|
- *
|
|
|
+ * 被申请信息
|
|
|
*/
|
|
|
+ public function Nuser(){
|
|
|
+ return $this->belongsTo('User','nid','id',[],"LEFT")->field('id,id_authentication,avatar,username,avatar');
|
|
|
+ }
|
|
|
public static function read($arr){
|
|
|
foreach ($arr as $v){
|
|
|
Apply::update(['is_read'=>1],['id'=>$v['id']]);
|