get请求中带有json类型的body。
会报错
{"statusCode":500,"message":"Required request body is missing: public com.kemai.bigdata.ops.data.common.RYTM<?> com.kemai.bigdata.ops.data.controller.YunTiaoMaController.md5ForCQuery(com.kemai.bigdata.ops.data.model.YunTiaoMaRequestContext)","size":0}
Net.INSTANCE.get(url, null, new Function1<UrlRequest, kotlin.Unit>() {
@Override
public kotlin.Unit invoke(UrlRequest urlRequest) {
urlRequest.param("barcode",Barcode);
urlRequest.param("hashCode",barcodeEncrypt(Barcode));
return null;
}
}).enqueue(new Callback() {
@Override
public void onFailure(@NonNull Call call, @NonNull IOException e) {
get请求中带有json类型的body。 会报错 {"statusCode":500,"message":"Required request body is missing: public com.kemai.bigdata.ops.data.common.RYTM<?> com.kemai.bigdata.ops.data.controller.YunTiaoMaController.md5ForCQuery(com.kemai.bigdata.ops.data.model.YunTiaoMaRequestContext)","size":0}
Net.INSTANCE.get(url, null, new Function1<UrlRequest, kotlin.Unit>() { @Override public kotlin.Unit invoke(UrlRequest urlRequest) { urlRequest.param("barcode",Barcode); urlRequest.param("hashCode",barcodeEncrypt(Barcode)); return null; } }).enqueue(new Callback() { @Override public void onFailure(@NonNull Call call, @NonNull IOException e) {
如何实现像下面apipost中的请求。