瀏覽代碼

wcrm stats except

zz 6 年之前
父節點
當前提交
39c0967f54
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      app/Http/Controllers/Wap/User/CoflController.php

+ 6 - 1
app/Http/Controllers/Wap/User/CoflController.php

@@ -109,7 +109,12 @@ class CoflController extends Controller
         }
         $user = $this->getUsers($openid);
         if(!$user || !$user[0] || !$user[1]) return redirect()->to($this->getLink().'?'.http_build_query($params));
-        $this->statsDetail($user[0],'reward',0);
+
+        if($type == 'CRM'){
+            $this->statsDetail($user[0],'reward',0);
+        }else{
+            $this->statsDetail($user[0],'wreward',0);
+        }
         $get_free_currency = UserBindHkWelfareService::isHasGet($user[0]);
         if($get_free_currency){
             //已经领过