"小谢", "ref_id_list" => $goodsId, "type" => "goods" ]; return $this->curlPostApi("api/industry/v1/solution/add_app_test_relation/",$param); } public function getTestRelation(array $goodsId = []): array { $param = [ "type" => "goods" ]; return $this->curlPostApi("api/industry/v1/solution/query_app_test_relation/",$param,'ref_id_list'); } /** * 预下单 * @param array $data * @return array */ public function createOrderFirst(array $data = []): array { $param = [ "sku_list" => [ [ "quantity" => 1, "sku_id" => "424144008809807427", "sku_id_type" => 1, "price" => 1, "discount_amount" => 0, "goods_info" => [ "date_rule" => "周一至周日可用", "goods_id" => "1865253598118939", "goods_id_type" => 1 ] ] ], "total_amount" => 1, "discount_amount" => 0, "phone_num" => "13265000719", "contact_name" => "小谢", "extra" => "AL202605156234065268123", "open_id" => "_000KmfiVkio30K9VxoeLUUY3_hngEWcgR7u", "out_order_no" => "AL202605156234065268123", "order_entry_schema" => [ "params" => ["order" => "AL202605156234065268123"], "path" => "pages/order/detail" ] ]; return $this->curlPostApi("api/apps/trade/v2/order/create_order/",$param); } }