细节优化
parent
6bcfb9e4df
commit
466c298b04
|
|
@ -95,6 +95,7 @@ class PayRequestLog
|
|||
'grid_size' => 'sm',
|
||||
'search_config' => [
|
||||
'form_type' => 'input',
|
||||
'form_name' => 'business_handle',
|
||||
'where_type' => 'like',
|
||||
],
|
||||
],
|
||||
|
|
@ -105,7 +106,6 @@ class PayRequestLog
|
|||
'grid_size' => 'sm',
|
||||
'search_config' => [
|
||||
'form_type' => 'input',
|
||||
'form_name' => 'business_handle',
|
||||
'where_type' => 'like',
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="hidden" name="lng" id="form-lng" {{if !empty($data['lng'])}} value="{{$data.lng}}"{{/if}} />
|
||||
<input type="hidden" name="lat" id="form-lat" {{if !empty($data['lat'])}} value="{{$data.lat}}"{{/if}} />
|
||||
<input type="text" name="address" id="form-address" placeholder="详细地址" minlength="2" maxlength="80" data-validation-message="详细地址格式1~80个字符之间" class="am-radius" {{if !empty($data['address'])}} value="{{$data.address}}"{{/if}} required />
|
||||
<input type="text" name="address" id="form-address" placeholder="详细地址" minlength="2" maxlength="80" data-validation-message="详细地址格式1~80个字符之间" class="am-radius am-form-field" {{if !empty($data['address'])}} value="{{$data.address}}"{{/if}} required />
|
||||
<span class="am-input-group-btn">
|
||||
<button type="button" class="am-btn am-btn-default am-radius" id="map-location-submit"><span class="am-icon-map-marker"></span> 定位</button>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -848,13 +848,23 @@ class OrderService
|
|||
}
|
||||
}
|
||||
|
||||
// 查看支付日志是否已支付处理成功、避免异步通知太快导致重叠处理
|
||||
if($order_total_price > 0 && !empty($params['pay_log_data']) && !empty($params['payment']))
|
||||
{
|
||||
$pay_log_status = Db::name('PayLog')->where(['id'=>$params['pay_log_data']['id']])->field('id,status')->value('status');
|
||||
if($pay_log_status == 1)
|
||||
{
|
||||
return DataReturn('支付成功', 0);
|
||||
}
|
||||
}
|
||||
|
||||
// 开启事务
|
||||
Db::startTrans();
|
||||
|
||||
// 循环处理
|
||||
foreach($params['order'] as $order)
|
||||
{
|
||||
// 订单已支付则不处理
|
||||
// 订单非待支付则不处理
|
||||
if($order['pay_status'] != 0)
|
||||
{
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ class PayLogService
|
|||
}
|
||||
|
||||
/**
|
||||
* 支付日志更新
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -775,6 +775,30 @@ button.colorpicker-submit img {
|
|||
color: #0e90d2 !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* 内部表格
|
||||
*/
|
||||
.form-inside-table tr th,
|
||||
.form-inside-table tr td {
|
||||
padding: 5px !important;
|
||||
z-index: 0 !important;
|
||||
}
|
||||
.form-inside-table tr th {
|
||||
background: transparent !important;
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
.form-inside-table tr th:first-child,
|
||||
.form-inside-table tr td:first-child {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
.form-inside-table tr th:last-child,
|
||||
.form-inside-table tr td:last-child {
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
.form-inside-table tr:last-child td {
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* 公共联动地区组件样式
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2876,7 +2876,7 @@ $(function()
|
|||
}
|
||||
}
|
||||
address += $('#form-address').val();
|
||||
if(province.length <= 0 || address.length <= 0)
|
||||
if(province.length <= 0 && address.length <= 0)
|
||||
{
|
||||
Prompt('地址为空');
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue