|
@@ -329,7 +329,7 @@ Class Manage
|
|
);
|
|
);
|
|
}
|
|
}
|
|
$button = array();
|
|
$button = array();
|
|
- if ($info['status'] == 2 && $info['code_num'] < 1 && time() < $active['act_start'] ) {
|
|
|
|
|
|
+ if ($info['status'] == 2 && $info['code_num'] < 1 && time() < $active['act_start'] && $active['refund_type'] == 2 ) {
|
|
|
|
|
|
if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund', '全额退款')) {
|
|
if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund', '全额退款')) {
|
|
$purl = Dever::url('active/lib/manage.refund&id='.$id);
|
|
$purl = Dever::url('active/lib/manage.refund&id='.$id);
|
|
@@ -341,7 +341,7 @@ Class Manage
|
|
);
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if ($info['status'] > 1 && $no_code > 0 && $info['status'] != 3 && time()<$active['act_start']) {
|
|
|
|
|
|
+ if ($info['status'] > 1 && $no_code > 0 && $info['status'] != 3 && time()<$active['act_start'] && $active['refund_type'] == 2) {
|
|
if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund1', '未使用退款')) {
|
|
if (Dever::load('manage/auth')->checkFunc('active.order', 'editrefund1', '未使用退款')) {
|
|
$purl = Dever::url('project/database/update?project=active&table=info_refund&search_option_order_id='.$info['id'].'&col=num,order_id', 'manage');
|
|
$purl = Dever::url('project/database/update?project=active&table=info_refund&search_option_order_id='.$info['id'].'&col=num,order_id', 'manage');
|
|
$button[] = array
|
|
$button[] = array
|
|
@@ -409,7 +409,7 @@ Class Manage
|
|
}
|
|
}
|
|
$active = Dever::db('active/info')->find($v['active_id']);
|
|
$active = Dever::db('active/info')->find($v['active_id']);
|
|
$m = '';
|
|
$m = '';
|
|
- if ($v['status'] == 1 && time()<$active['act_start']) {
|
|
|
|
|
|
+ if ($v['status'] == 1 && time()<$active['act_start'] && $active['refund_type'] == 2) {
|
|
$url = Dever::url('lib/manage.setOrder&order_id=' . $v['order_id'].'&code_id='.$v['id'], 'active');
|
|
$url = Dever::url('lib/manage.setOrder&order_id=' . $v['order_id'].'&code_id='.$v['id'], 'active');
|
|
$m = '<a href="javascript:;" onclick="load( \''.$url.'\')" class="layui-btn">退款</a>';
|
|
$m = '<a href="javascript:;" onclick="load( \''.$url.'\')" class="layui-btn">退款</a>';
|
|
}
|
|
}
|