Commit efa77df7 by 朱继来

调整售后退货

parent 1f3f2570
...@@ -182,9 +182,10 @@ class OrderServiceModel extends Model ...@@ -182,9 +182,10 @@ class OrderServiceModel extends Model
$res = json_decode(curlApi($url, $post, 'POST'), true); $res = json_decode(curlApi($url, $post, 'POST'), true);
if (!$res || $res['err_code'] != 0) return [-2, '审核通过失败,原因:'.$res['err_msg']]; if (!$res) return [-2, '审核通过失败,原因:接口错误'];
if ($res['err_code'] != 0) return [-2, '审核通过失败,原因:'.$res['err_msg']];
if ( $service_type == 1) { if ($service_type == 1) {
$event .= ',生成退款单,退款单号:'.$res['data']; $event .= ',生成退款单,退款单号:'.$res['data'];
} else { } else {
$event .= ',生成退货单,退货单号:'.$res['data']; $event .= ',生成退货单,退货单号:'.$res['data'];
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<a class="btn btn-xs btn-outline btn-success" lay-event="audit">审核</a> <a class="btn btn-xs btn-outline btn-success" lay-event="audit">审核</a>
<?php } ?> <?php } ?>
<a class="btn btn-xs btn-outline btn-danger" lay-event="cancel">取消</a> <a class="btn btn-xs btn-outline btn-danger" lay-event="cancel">取消</a>
@{{# } else if (d.service_status == 3 && d.refund_status != 3) { }} @{{# } else if (d.service_type == 1 && d.service_status == 3 && d.refund_status != 3) { }}
<?php if (in_array('orderServiceList_confirm_refund', $userPerms)) { ?> <?php if (in_array('orderServiceList_confirm_refund', $userPerms)) { ?>
<a class="btn btn-xs btn-outline btn-success" lay-event="confirm">确认退款</a> <a class="btn btn-xs btn-outline btn-success" lay-event="confirm">确认退款</a>
<?php } ?> <?php } ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment