mark há 2 anos atrás
pai
commit
ee04f14213

+ 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);