同意退款逻辑

This commit is contained in:
Jerry Yan 2020-09-22 10:33:13 +08:00
parent ba0cae119f
commit fd0d71a25d

View File

@ -220,6 +220,7 @@ class OrderRefunds extends Base{
WSTWxMessage(['CODE'=>'WX_ORDER_REFUND_FAIL','userId'=>$order['userId'],'URL'=>Url('wechat/orders/index','',true,true),'params'=>$params]);
}
}else{
Db::name('orders')->where('orderId',$object->orderId)->update(['isRefund'=>1]);
//判断是否需要发送管理员短信
$tpl = WSTMsgTemplates('PHONE_ADMIN_REFUND_ORDER');
if((int)WSTConf('CONF.smsOpen')==1 && (int)WSTConf('CONF.smsRefundOrderTip')==1 && $tpl['tplContent']!='' && $tpl['status']=='1'){