mark 3 年之前
父節點
當前提交
ee04f14213
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 1 0
      app/Http/Controllers/BaseController.php
  2. 5 1
      app/Http/Logic/Home/HomeLogic.php

+ 1 - 0
app/Http/Controllers/BaseController.php

@@ -133,6 +133,7 @@ class BaseController extends Controller
 
     public function test()
     {
+        dd(TaobaoLianMengUtil::getActivityInfo(70362850341,"20150318020002597"));
         CronLogic::taobaoOrdersLogic();
         dd(1);
         $data = TaobaoPidModel::query()

+ 5 - 1
app/Http/Logic/Home/HomeLogic.php

@@ -127,7 +127,11 @@ class HomeLogic extends BaseLogic
             //获取用户
             switch ($act["platform_type"]){
                 case 1://淘宝
-
+                    $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_TAOBAO,$userId);
+                    $response = TaobaoLianMengUtil::getActivityInfo($platformSid,$act->activity_id);
+                    $res = [
+                        "h5"=>$response["short_click_url"],
+                    ];
                     break;
                 case 2://拼多多
                     $platformSid = BaseUtil::getPlatformUserSpreadId(PlatformTypeEnum::PLATFORM_PINGDUODUO,$userId);