ソースを参照

0803-1913-c01

zory 1 日 前
コミット
06e567afac

ファイルの差分が大きいため隠しています
+ 3 - 17
app/controller/merchant/Star.php


+ 24 - 0
app/extra/tools/LifeWeb.php

@@ -28,6 +28,30 @@ class LifeWeb
         return $this;
     }
 
+    /**
+     * 获取达人信息
+     * @param string $name
+     * @return array
+     */
+    public function getStarData(string $name = ""): array
+    {
+        $param = [
+            "request_source"    => 2,
+            "keyword"           => $name,
+            "page"          => 1,
+            "page_size"     => 10
+        ];
+        $resp = Http::asJson()->withHeaders($this->header)->post($this->getaway."/life/alliance/v1/merchant/talent_square/talent/search/?root_life_account_id=7595228109947947043&life_biz_view_id=22&life_account_biz_ids=",$param)->array();
+        if ($resp['status_code'] <> 0) return [0,'登录过期,请联系管理员'];
+        if (!isset($resp['talent_list'][0])) return [0,'未获取到达人信息,请确认是否已开通达人权限'];
+        return [1,$resp['talent_list'][0]];
+    }
+
+    /**
+     * 获取订单信息
+     * @param string $orderId
+     * @return array
+     */
     public function getOrderData(string $orderId = ""): array
     {
         $param = [

+ 1 - 1
app/queue/redis/fast/OrderDone.php

@@ -103,7 +103,7 @@ class OrderDone implements Consumer
                 $doneData[$key] = [
                     "poi_id"            => $order['poi_id'],
                     "order_sn"          => $order['order_sn'],
-                    "money"             => $order['price'] / $order['number'],
+                    "money"             => $order['price'],
                     "certificate_id"    => $v['certificate_id'],
                     "verify_id"         => $v['verify_id'],
                 ];

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません