Procházet zdrojové kódy

wesmiler ECY 画画交易平台

APPLE před 3 roky
rodič
revize
bc42d62329

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

@@ -43,6 +43,10 @@ class Googlecode extends Backend
      */
     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('绑定失败');
+        }
     }
 }