|
@@ -129,54 +129,54 @@ class HomeLogic extends BaseLogic
|
|
|
case 1://淘宝
|
|
|
|
|
|
break;
|
|
|
-// case 2://拼多多
|
|
|
-// $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_PINGDUODUO,$userId);
|
|
|
-// //判断类型
|
|
|
-// switch ($act["category_name"]){
|
|
|
-// case "话费充值":
|
|
|
-// $bean = new ResourceUrlGenParamBean(
|
|
|
-// [
|
|
|
-// "pid"=>$platformSid,
|
|
|
-// "resourceType"=>39997
|
|
|
-// ]
|
|
|
-// );
|
|
|
-// $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
-// $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
-// break;
|
|
|
-// case "火车票":
|
|
|
-// $bean = new ResourceUrlGenParamBean(
|
|
|
-// [
|
|
|
-// "pid"=>$platformSid,
|
|
|
-// "resourceType"=>50005
|
|
|
-// ]
|
|
|
-// );
|
|
|
-// $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
-// $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
-// break;
|
|
|
-// case "百亿补贴":
|
|
|
-// $bean = new ResourceUrlGenParamBean(
|
|
|
-// [
|
|
|
-// "pid"=>$platformSid,
|
|
|
-// "resourceType"=>39996
|
|
|
-// ]
|
|
|
-// );
|
|
|
-// $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
-// $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
-// break;
|
|
|
-// case "领券中心":
|
|
|
-// $bean = new ResourceUrlGenParamBean(
|
|
|
-// [
|
|
|
-// "pid"=>$platformSid,
|
|
|
-// "resourceType"=>40000
|
|
|
-// ]
|
|
|
-// );
|
|
|
-// $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
-// $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
-// break;
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// break;
|
|
|
+ case 2://拼多多
|
|
|
+ $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_PINGDUODUO,$userId);
|
|
|
+ //判断类型
|
|
|
+ switch ($act["category_name"]){
|
|
|
+ case "话费充值":
|
|
|
+ $bean = new ResourceUrlGenParamBean(
|
|
|
+ [
|
|
|
+ "pid"=>$platformSid,
|
|
|
+ "resourceType"=>39997
|
|
|
+ ]
|
|
|
+ );
|
|
|
+ $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
+ $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
+ break;
|
|
|
+ case "火车票":
|
|
|
+ $bean = new ResourceUrlGenParamBean(
|
|
|
+ [
|
|
|
+ "pid"=>$platformSid,
|
|
|
+ "resourceType"=>50005
|
|
|
+ ]
|
|
|
+ );
|
|
|
+ $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
+ $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
+ break;
|
|
|
+ case "百亿补贴":
|
|
|
+ $bean = new ResourceUrlGenParamBean(
|
|
|
+ [
|
|
|
+ "pid"=>$platformSid,
|
|
|
+ "resourceType"=>39996
|
|
|
+ ]
|
|
|
+ );
|
|
|
+ $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
+ $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
+ break;
|
|
|
+ case "领券中心":
|
|
|
+ $bean = new ResourceUrlGenParamBean(
|
|
|
+ [
|
|
|
+ "pid"=>$platformSid,
|
|
|
+ "resourceType"=>40000
|
|
|
+ ]
|
|
|
+ );
|
|
|
+ $data = DuoDuoKeUtil::resourceUrlGen($bean);
|
|
|
+ $linkUrl = $data["resource_url_response"]["single_url_list"]["short_url"];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ $res["h5"] = $linkUrl;
|
|
|
+ break;
|
|
|
// case 3://京东
|
|
|
//
|
|
|
// break;
|