Explorar o código

wesmiler ECY 画画交易平台

APPLE %!s(int64=3) %!d(string=hai) anos
pai
achega
bc42d62329
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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()
     {
-        $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('绑定失败');
+        }
     }
 }