小编Rad*_*Ali的帖子

PHP中的@Part List <MultipartBody.Part>

我正在使用此功能发布多个图像

@Multipart
@POST("addad")
Call<resultsmodel> addad(
        @Part List< MultipartBody.Part> files ,
        @Part MultipartBody.Part file,
        @Part("external_store") RequestBody external_store,
        @Part("inner_store") RequestBody inner_store,
        @Part("sectionId") RequestBody sectionId,
        @Part("title") RequestBody title,
        @Part("branchId") RequestBody branchId,
        @Part("branch_type") RequestBody branch_type,
        @Part("user") RequestBody user,
        @Part("year") RequestBody year,
        @Part("view_number") RequestBody view_number,
        @Part("type") RequestBody type,
        @Part("price") RequestBody price,
        @Part("city_id") RequestBody city_id,
        @Part("district_id") RequestBody district_id,
        @Part("lat") RequestBody lat,
        @Part("lon") RequestBody lon,
        @Part("details") RequestBody details,
        @Part("country") RequestBody country


);
Run Code Online (Sandbox Code Playgroud)

我想知道如何在php中接收此图像数组

php android retrofit

1
推荐指数
1
解决办法
1215
查看次数

标签 统计

android ×1

php ×1

retrofit ×1