zz 5 anni fa
parent
commit
891bbe74fa
1 ha cambiato i file con 18 aggiunte e 7 eliminazioni
  1. 18 7
      app/Http/Controllers/Wap/User/CoflController.php

+ 18 - 7
app/Http/Controllers/Wap/User/CoflController.php

@@ -794,13 +794,24 @@ class CoflController extends Controller
         Redis::sadd($uv_key,$uid);
 
         if($uid){
-            DB::table('ad_pdd')->insert([
-                'uid'=>$uid,
-                'img'=>'GUIDE_PERSONAL_ACCOUNT_'.$now_id,
-                'date'=>date('Y-m-d'),
-                'created_at'=>date('Y-m-d H:i:s'),
-                'updated_at'=>date('Y-m-d H:i:s')
-            ]);
+            if($group == 'OUT_ACTIVE'){
+                DB::table('ad_pdd')->insert([
+                    'uid'=>$uid,
+                    'img'=>'OUT_GUIDE_PERSONAL_ACCOUNT_'.$now_id,
+                    'date'=>date('Y-m-d'),
+                    'created_at'=>date('Y-m-d H:i:s'),
+                    'updated_at'=>date('Y-m-d H:i:s')
+                ]);
+            }else{
+                DB::table('ad_pdd')->insert([
+                    'uid'=>$uid,
+                    'img'=>'GUIDE_PERSONAL_ACCOUNT_'.$now_id,
+                    'date'=>date('Y-m-d'),
+                    'created_at'=>date('Y-m-d H:i:s'),
+                    'updated_at'=>date('Y-m-d H:i:s')
+                ]);
+            }
+
         }
         $name = '';
         $name_info = DB::table('personal_account_list')->where('id',$now_id)->select('name')->first();