细节优化

feat/task1-c-wallet
Devil 2021-07-19 18:36:54 +08:00
parent 19a8e50ea2
commit d5487ad361
2 changed files with 1 additions and 6 deletions

View File

@ -699,7 +699,7 @@ class PaymentService
// 开始卸载
$payment = $params['id'];
if(db('Payment')->where(['payment'=>$payment])->delete())
if(Db::name('Payment')->where(['payment'=>$payment])->delete())
{
// 删除入口文件
self::PaymentEntranceDelete(['payment' => $payment]);

View File

@ -125,11 +125,6 @@ class UserAddressService
$v['city_name'] = (!empty($v['city']) && !empty($region) && array_key_exists($v['city'], $region)) ? $region[$v['city']] : '';
$v['county_name'] = (!empty($v['county']) && !empty($region) && array_key_exists($v['county'], $region)) ? $region[$v['county']] : '';
// 地区
$v['province_name'] = (!empty($v['province']) && array_key_exists($v['province'], $region)) ? $region[$v['province']] : '';
$v['city_name'] = (!empty($v['city']) && array_key_exists($v['city'], $region)) ? $region[$v['city']] : '';
$v['county_name'] = (!empty($v['county']) && array_key_exists($v['county'], $region)) ? $region[$v['county']] : '';
// 附件
if(isset($v['idcard_front']))
{