Browse Source

wesmiler ECY 画画交易平台

APPLE 3 years ago
parent
commit
bc42d62329
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/cmgadm/controller/general/Googlecode.php

+ 5 - 1
application/cmgadm/controller/general/Googlecode.php

@@ -43,6 +43,10 @@ class Googlecode extends Backend
      */
      */
     public function bind()
     public function bind()
     {
     {
-        $admin = Admin::where(['id'=> $this->auth->id])->field('id,username,nickname,google_key')->find();
+        if(Admin::where(['id'=> $this->auth->id])->update(['google_bind'=>1,'update_time'=>time()])){
+            $this->success('绑定成功');
+        }else{
+            $this->error('绑定失败');
+        }
     }
     }
 }
 }