|
@@ -324,6 +324,7 @@ class ZopOrderService extends ZopBaseService
|
|
|
'pageUrl',
|
|
|
'resourceId'
|
|
|
]);
|
|
|
+ $data['launchPlatform'] = self::getRandLaunchPlatform();
|
|
|
|
|
|
$result = self::send($url, $data);
|
|
|
if (empty($result)) {
|
|
@@ -344,6 +345,33 @@ class ZopOrderService extends ZopBaseService
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 随机获取投放平台
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public static function getRandLaunchPlatform()
|
|
|
+ {
|
|
|
+ $data = [
|
|
|
+ '抖音APP',
|
|
|
+ '快手APP',
|
|
|
+ '拼多多APP',
|
|
|
+ '腾讯视频APP',
|
|
|
+ '手淘APP',
|
|
|
+ '百度APP',
|
|
|
+ '美团APP',
|
|
|
+ '拼团微信小程序',
|
|
|
+ '生态合作',
|
|
|
+ '广点通',
|
|
|
+ '巨量引擎'
|
|
|
+ ];
|
|
|
+
|
|
|
+ $randKey = array_rand($data);
|
|
|
+ $platform = $data[$randKey];
|
|
|
+
|
|
|
+ return $platform;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 选号服务
|
|
|
*
|
|
|
* @param array $params [goodsId: 商品ID, provinceCode: 省份编码, cityCode: 地市编码, searchCategory: 搜索类别: 1、普通选号 2、靓号选号 3、全部(普通、靓号都包括)]
|