商品退换接口修改

hmxc
张萌 3 years ago
parent 2e97ab7020
commit f70686af33

@ -12,9 +12,9 @@ class MyOrderFunc {
}
///退
static Future refundOrder(int goodsAppointmentId, String reson) async {
static Future refundOrder(int goodsAppointmentId, String reson,int type) async {
BaseModel baseModel = await NetUtil().get(API.market.refundOrder,
params: {"goodsAppointmentId": goodsAppointmentId, "backReason": reson},
params: {"goodsAppointmentId": goodsAppointmentId, "backReason": reson,"backType":type},
showMessage: true);
return baseModel;
}

@ -55,7 +55,7 @@ class _MyOrderRefundPageState extends State<MyOrderRefundPage> {
bottomNavi: BottomButton(
onPressed: () async {
BaseModel baseModel = await MyOrderFunc.refundOrder(
widget.model.id, _editingController.text);
widget.model.id, _editingController.text, _type);
if (baseModel.status ?? false) {
Get.back();
}

Loading…
Cancel
Save