Jelajahi Sumber

wesmiler ECY 画画交易平台

APPLE 3 tahun lalu
induk
melakukan
bc42d62329
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  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('绑定失败');
+        }
     }
 }