瀏覽代碼

wesmiler ECY 画画交易平台

APPLE 2 年之前
父節點
當前提交
bc42d62329
共有 1 個文件被更改,包括 5 次插入1 次删除
  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('绑定失败');
+        }
     }
 }