新增渠道费率

master
jbRotk 5 years ago
parent 5f510cd4d9
commit 72cfd9ec64

@ -28,6 +28,13 @@ class ToolController extends ThinkController {
$map_['name']=array("in",'wei_xin,wei_xin_app,weixin');
M('tool','tab_')->where($map_)->setField('status','0');
}
if (!is_numeric($config['channel_rate'])) {
$this->error('请输入正确的渠道费率');
}
if ($config['channel_rate'] > 100) {
$this->error('渠道费率最大值为100%');
}
$config['channel_rate'] = round($config['channel_rate'], 2);
$flag = M('Tool','tab_')->where($map)->setField($data);
if($flag !== false){
$config['status']=$_POST['status'];

@ -216,7 +216,6 @@
</td>
</tr>
<tr>
<td class="l noticeinfo">启用状态</td>
@ -237,7 +236,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$alipay['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
@ -329,8 +340,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$wei_xin['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -423,7 +445,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$wei_xin_app['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -690,7 +724,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$weixin_gf['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -809,7 +855,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$jft['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -927,7 +985,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$jft_wap['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -1078,7 +1148,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$goldpig_data['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
@ -1275,7 +1357,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$sqpay['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
</table>
@ -1365,7 +1459,19 @@
</tr>
<tr>
<td class="l noticeinfo">渠道费率</td>
<td class="r">
<input name="config[channel_rate]" type="text" value="{$heepay['channel_rate']}" class="" placeholder="设置支付渠道的的费用比例">
<span class="notice-text">%</span>
</td>
</tr>
</tbody>
</table>

Loading…
Cancel
Save