Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
e4f3421cfa
2 changed files with 34 additions and 34 deletions
  1. 18 18
      application/store/controller/Examine.php
  2. 16 16
      application/store/controller/MemberBasic.php

+ 18 - 18
application/store/controller/Examine.php

@@ -77,26 +77,26 @@ class Examine extends Controller
             if($data['status']==2){
                 $info = Db::name('store_examine')->where('id',$data['id'])->find();
                 $member = [
-                    'username'=>$info['name'],
-                    'phone'=>$info['phone'],
+//                    'username'=>$info['name'],
+//                    'phone'=>$info['phone'],
                     'working'=>$info['c_id'],
                     'vip_level'=>1,
-//                    'nature'=>$info['n_id'],
-//                    'constellation'=>$info['constellation'],
-//                    'hobby'=>$info['hobby'],
-//                    'status'=>$info['hunshi'],
-//                    'is_zinv'=>$info['is_zinv'],
-//                    'zinv_sex'=>$info['zinv_sex'],
-//                    'is_du'=>$info['is_du'],
-//                    'children'=>$info['children'],
-//                    'home'=>$info['home'],
-//                    'is_car'=>$info['is_car'],
-//                    'car_model'=>$info['car_model'],
-//                    'fa_work'=>$info['fa_work'],
-//                    'ma_work'=>$info['ma_work'],
-//                    'graduation_school'=>$info['graduation_school'],
-//                    'position'=>$info['position'],
-//                    'income'=>$info['income'],
+                    'nature'=>$info['n_id'],
+                    'constellation'=>$info['constellation'],
+                    'hobby'=>$info['hobby'],
+                    'status'=>$info['hunshi'],
+                    'is_zinv'=>$info['is_zinv'],
+                    'zinv_sex'=>$info['zinv_sex'],
+                    'is_du'=>$info['is_du'],
+                    'children'=>$info['children'],
+                    'home'=>$info['home'],
+                    'is_car'=>$info['is_car'],
+                    'car_model'=>$info['car_model'],
+                    'fa_work'=>$info['fa_work'],
+                    'ma_work'=>$info['ma_work'],
+                    'graduation_school'=>$info['graduation_school'],
+                    'position'=>$info['position'],
+                    'income'=>$info['income'],
                 ];
                 Db::name('store_member')->where('id',$info['mid'])->update($member);
             }

+ 16 - 16
application/store/controller/MemberBasic.php

@@ -82,27 +82,27 @@ class MemberBasic extends Controller
                 if ($data['state'] == 1) {
                     $info = Db::name('store_member_basic')->where('id', $data['id'])->find();
                     $user = Db::name('store_member')->where('id',$info['mid'])->find();
-                    $member = [
-                        'username' => $info['username'],
-                        'phone' => $info['phone'],
-                        'vip_level' => 0,
-                    ];
 //                    $member = [
-//                        'nickname'=>$info['nickname'],
-//                        'ID_car'=>$info['ID_car'],
-//                        'education'=>$info['education'],
-//                        'age'=>$info['age'],
-//                        'sex'=>$info['sex'],
-//                        'height'=>$info['height'],
-//                        'weight'=>$info['weight'],
-//                        'headimg'=>$info['headimg'],
-//                        'province_id'=>1375,
-//                        'city_id'=>1479,
-//                        'area_id'=>$info['area_id'],
 //                        'username' => $info['username'],
 //                        'phone' => $info['phone'],
 //                        'vip_level' => 0,
 //                    ];
+                    $member = [
+                        'nickname'=>$info['nickname'],
+                        'ID_car'=>$info['ID_car'],
+                        'education'=>$info['education'],
+                        'age'=>$info['age'],
+                        'sex'=>$info['sex'],
+                        'height'=>$info['height'],
+                        'weight'=>$info['weight'],
+                        'headimg'=>$info['headimg'],
+                        'province_id'=>1375,
+                        'city_id'=>1479,
+                        'area_id'=>$info['area_id'],
+                        'username' => $info['username'],
+                        'phone' => $info['phone'],
+                        'vip_level' => 0,
+                    ];
                     if(empty($user['openid'])||$user['phone']){
                         Db::name('store_member')->where('id', $info['mid'])->update($member);
                     }