|
@@ -24,6 +24,7 @@ class RUser extends MongoAr
|
|
|
public $user_info = array();
|
|
|
public $source = '壹管家';
|
|
|
public $type = '微信';
|
|
|
+ public $isReg= false;
|
|
|
|
|
|
|
|
|
public function __construct($scenario='insert'){
|
|
@@ -71,6 +72,7 @@ class RUser extends MongoAr
|
|
|
$newRow['id'] = (string)$row['_id'];
|
|
|
$newRow['sex'] = CommonFn::get_val_if_isset($row,'sex',3);
|
|
|
$newRow['type'] = CommonFn::get_val_if_isset($row,'type','');
|
|
|
+ $newRow['isReg'] = CommonFn::get_val_if_isset($row,'isReg','');
|
|
|
$newRow['avatar'] = CommonFn::get_val_if_isset($row,'avatar',Yii::app()->params['defaultUserAvatar']);
|
|
|
if($newRow['avatar']==''){
|
|
|
$newRow['avatar'] = Yii::app()->params['defaultUserAvatar'];
|