Просмотр исходного кода

wesmiler ECY 画画交易平台

APPLE 3 лет назад
Родитель
Сommit
5f5a655ca0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      application/cmgadm/controller/general/Googlecode.php

+ 2 - 2
application/cmgadm/controller/general/Googlecode.php

@@ -25,7 +25,7 @@ class Googlecode extends Backend
         $googleKey = isset($admin['google_key'])? $admin['google_key'] : '';
         if(empty($googleKey)){
             $secret = $google->createSecret();
-            Admin::where(['id'=> $this->auth->id])->update(['google_key'=> $secret]);
+            Admin::where(['id'=> $this->auth->id])->update(['google_key'=> $secret,'updatetime'=>time()]);
         }
         $config = Config::getConfigByGroup('basic');
         $siteName = isset($config['name'])? $config['name']['value'] : '茶马古道';
@@ -43,7 +43,7 @@ class Googlecode extends Backend
      */
     public function bind()
     {
-        if(Admin::where(['id'=> $this->auth->id])->update(['google_bind'=>1,'update_time'=>time()])){
+        if(Admin::where(['id'=> $this->auth->id])->update(['google_bind'=>1,'updatetime'=>time()])){
             $this->success('绑定成功');
         }else{
             $this->error('绑定失败');