|
@@ -108,8 +108,8 @@ class usermodel extends Model
|
|
|
*/
|
|
|
public function getfieldbyopenid($openid, $field = "")
|
|
|
{
|
|
|
- if(empty($field)){
|
|
|
- $field=["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company"];
|
|
|
+ if (empty($field)) {
|
|
|
+ $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company", "nation", "origin", "address"];
|
|
|
}
|
|
|
$where = ['openid' => $openid];
|
|
|
$info = $this->field($field)->where($where)->find();
|
|
@@ -122,8 +122,8 @@ class usermodel extends Model
|
|
|
*/
|
|
|
public function getfieldbyid($id, $field = "")
|
|
|
{
|
|
|
- if(empty($field)){
|
|
|
- $field=["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company"];
|
|
|
+ if (empty($field)) {
|
|
|
+ $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company", "nation", "origin", "address"];
|
|
|
}
|
|
|
$where = ['id' => $id];
|
|
|
$info = $this->field($field)->where($where)->find();
|