Merge remote-tracking branch 'origin/dev' into dev

master
zhengchanglong 5 years ago
commit c2945ce522

@ -84,11 +84,15 @@ class QueryController extends BaseController
$map['tab_spend.pay_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]]; $map['tab_spend.pay_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]];
} }
if (I('pay_way') !== null && I('pay_way') !== '') { if (isset($_REQUEST['pay_way']) && $_REQUEST['pay_way'] !== '') {
if (I('pay_way') == 2) { $payWay = intval(I('pay_way'));
if (in_array($payWay, array_keys(QueryController::$payWay))) {
if ($payWay == 2) {
$map['tab_spend.pay_way'] = ['in', '2,3,4']; $map['tab_spend.pay_way'] = ['in', '2,3,4'];
} else { } else {
$map['tab_spend.pay_way'] = I('pay_way'); $map['tab_spend.pay_way'] = $payWay;
}
} }
} }

@ -142,7 +142,7 @@
<div class="form-group normal_space fl"> <div class="form-group normal_space fl">
<select id="pay_way" name="pay_way" class="reselect select_gallery" style="min-width:130px;"> <select id="pay_way" name="pay_way" class="reselect select_gallery" style="min-width:130px;">
<option value="">支付方式</option> <option value="-2">支付方式</option>
<foreach name="payWayData" item="vo" key="k"> <foreach name="payWayData" item="vo" key="k">
<if condition="$k eq I('pay_way',-2)"> <if condition="$k eq I('pay_way',-2)">
<option value="{$k}" selected>{$vo}</option> <option value="{$k}" selected>{$vo}</option>

Loading…
Cancel
Save