yingzi 2 роки тому
батько
коміт
536ead8b94

+ 21 - 0
Controller/NewCommission/ApiNewCommissionPartner.Class.php

@@ -68,6 +68,27 @@ class ApiNewCommissionPartner extends BaseController
         }
         $selectParams["where"] = $where;
         
+        $testData=[
+            "total"=>1,
+            "data"=>[
+                [
+                    "avatar"=>"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
+                    "title"=>"子级合伙人收益分佣",
+                    "type"=>1,
+                    "calcMoney"=>100,
+                    "commission"=>10,
+                ],
+                [
+                    "avatar"=>"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
+                    "title"=>"子级消费分佣",
+                    "type"=>0,
+                    "calcMoney"=>100,
+                    "commission"=>10,
+                ],
+            ],
+        ];
+        parent::sendOutput($testData);
+        
         $data = $this->partnerTool->getCommissionDetail($this->customerData["id"],$selectParams);
         parent::sendOutput($data);
     }