Răsfoiți Sursa

#5448 WonderPush integration

Aleksandr Trofimov 6 luni în urmă
părinte
comite
1655de747f
2 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 1 2
      install/sql/system.sql
  2. 1 2
      template/scripts/BxBasePushWonderPush.php

+ 1 - 2
install/sql/system.sql

@@ -771,8 +771,7 @@ INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `ex
 
 
 (@iCategoryId, 'sys_push_wonderpush_app_id', '_adm_stg_cpt_option_sys_push_wonderpush_app_id', '', 'digit', '', '', '', 30),
 (@iCategoryId, 'sys_push_wonderpush_app_id', '_adm_stg_cpt_option_sys_push_wonderpush_app_id', '', 'digit', '', '', '', 30),
 (@iCategoryId, 'sys_push_wonderpush_access_token', '_adm_stg_cpt_option_sys_push_wonderpush_access_token', '', 'digit', '', '', '', 32),
 (@iCategoryId, 'sys_push_wonderpush_access_token', '_adm_stg_cpt_option_sys_push_wonderpush_access_token', '', 'digit', '', '', '', 32),
-(@iCategoryId, 'sys_push_wonderpush_web_key', '_adm_stg_cpt_option_sys_push_wonderpush_web_key', '', 'digit', '', '', '', 34),
-(@iCategoryId, 'sys_push_wonderpush_requires_user_consent', '_adm_stg_cpt_option_sys_push_wonderpush_requires_user_consent', 'on', 'checkbox', '', '', '', 36);
+(@iCategoryId, 'sys_push_wonderpush_web_key', '_adm_stg_cpt_option_sys_push_wonderpush_web_key', '', 'digit', '', '', '', 34);
 
 
 
 
 --
 --

+ 1 - 2
template/scripts/BxBasePushWonderPush.php

@@ -31,8 +31,7 @@ class BxBasePushWonderPush extends BxDolPushWonderPush
             'params' => json_encode([
             'params' => json_encode([
                 'webKey' => $this->_sWebKey,
                 'webKey' => $this->_sWebKey,
                 'userId' => $aTags['user_hash'],
                 'userId' => $aTags['user_hash'],
-                'applicationName' => getParam('site_title'),
-                'requiresUserConsent' => getParam('sys_push_wonderpush_requires_user_consent') ? true : false,
+                'applicationName' => getParam('site_title'),                
             ]),
             ]),
             'tags' => json_encode($aTags),
             'tags' => json_encode($aTags),
         ]);
         ]);