shish %!s(int64=4) %!d(string=hai) anos
pai
achega
a33039a54d
Modificáronse 2 ficheiros con 31 adicións e 7 borrados
  1. 2 1
      app-pt/controllers/MainController.php
  2. 29 6
      biz/pt/classes/AgreementClass.php

+ 2 - 1
app-pt/controllers/MainController.php

@@ -97,7 +97,8 @@ class MainController extends PlatformController
 
     public function actionXhbUserPrivacy()
     {
-        AgreementClass::xhbPrivacy(1);
+        $type = Yii::$app->request->get('type', 0);
+        AgreementClass::xhbPrivacy($type);
     }
 
 }

+ 29 - 6
biz/pt/classes/AgreementClass.php

@@ -62,7 +62,7 @@ TEXT;
         }
     }
 
-    //0 app 1 网站和H5
+    //0 电脑 1App
     public static function xhbPrivacy($type = 0)
     {
         $html = <<<TEXT
@@ -84,10 +84,12 @@ TEXT;
         _@@_一、我们如何收集和使用您的用户信息
         _@@__BB_(一)您使用销花宝过程中我们收集和使用的信息
         我们仅会出于本政策所述的业务功能,收集和使用您的用户信息,收集用户信息的目的在于向您提供产品或服务,您有权自行选择是否提供该信息,但多数情况下,如果您不提供,我们可能无法向您提供相应的服务,也无法回应您遇到的问题:
+
         _@@__BB_我们会收集您的姓名、电话和地址信息,用于注册开通店铺
         _@@__BB_我们的订单功能会收集您的位置信息,以方便您申请达达等第三方配送需求
         _@@__BB_我们的订单功能会申请您的拨打电话权限,以方便您在订单详情页直接唤起客户电话进行拨打
         _@@__BB_我们的花材管理需要您的读取存储卡和相机权限,以方便您修改花材图片
+        _@@__BB_我们的产品基于DCloud uni-app(5+ App/Wap2App)开发,应用运行期间需要收集您的设备唯一识别码(IMEI/android ID/DEVICE_ID/IDFA、SIM 卡 IMSI 信息、OAID)以提供统计分析服务,并通过应用启动数据及异常错误日志分析改进性能和用户体验,为用户提供更好的服务。详情内容请访问《DCloud用户服务条款》,链接地址 https://ask.dcloud.net.cn/protocol.html
 
         _@@_您提供的上述信息,将在您使用本服务期间持续授权我们使用。在您停止使用推送服务时,我们将停止使用并删除上述信息。
         我们保证会依法对收集后的用户信息进行去标识化或匿名化处理,对于无法单独或者与其他信息结合识别自然人个人身份的信息,不属于法律意义上的个人信息。如果我们将非个人信息与其他信息结合识别到您的个人身份时,或者与您的个人信息结合使用时,
@@ -270,16 +272,37 @@ TEXT;
             $current['content'] = $item;
             $new[] = $current;
         }
+        //0 电脑 1App
         if ($type == 0) {
-            return $new;
+            $str = "<div style='font-size:30px;padding:20px 0 20px 0'>";
+            foreach ($new as $item) {
+                $content = $item['content'];
+                $style = '';
+                if (isset($item['bold']) && $item['bold'] == 2) {
+                    $style .= 'font-weight:bold;';
+                }
+                if (isset($item['gap']) && $item['gap'] == 2) {
+                    $style .= 'margin-top:30px;';
+                }
+                $str .= '<div style="' . $style . '">' . $content . '</div>';
+            }
+            $str .= "</div>";
         } else {
-            echo "<div style='font-size:35px;padding:20px 0 20px 0'>";
+            $str = "<view style='font-size:30upx;padding:20upx 0 20upx 0'>";
             foreach ($new as $item) {
-                echo $item['content'] . "<br /><br />";
+                $content = $item['content'];
+                $style = '';
+                if (isset($item['bold']) && $item['bold'] == 2) {
+                    $style .= 'font-weight:bold;';
+                }
+                if (isset($item['gap']) && $item['gap'] == 2) {
+                    $style .= 'margin-top:30upx;';
+                }
+                $str .= '<view style="' . $style . '">' . $content . '</view>';
             }
-            echo "</div>";
-            exit();
+            $str .= "</view>";
         }
+        echo $str;
     }
 
 }