Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
679c55539f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      application/store/controller/MemberBasic.php

+ 11 - 0
application/store/controller/MemberBasic.php

@@ -65,6 +65,17 @@ class MemberBasic extends Controller
     protected function _form_filter(&$data)
     {
 
+        if ($this->request->isPost()) {
+            if($data['state']==1){
+                $info = Db::name('store_member_basic')->where('id',$data['id'])->find();
+                $member = [
+                    'username'=>$info['username'],
+                    'phone'=>$info['phone'],
+                    'vip_level'=>0,
+                ];
+                Db::name('store_member')->where('id',$info['mid'])->update($member);
+            }
+        }
     }
 
 }