Skip to content

Commit

Permalink
项目介绍修订
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxing1617 committed Jan 7, 2023
1 parent ee37aca commit a5be594
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ GitHub主页:https://github.com/xiaoxing1617

官网:www.96xy.cn

## :flight_arrival: 赞助【特别鸣谢】

| 名称 | 日期 | 联系方式 | 网站 | | 备注 |
| ------------ | ---------- | ----------- | --------------- | ---- | ---- |
| 初心、不变つ | 2023/01/06 | QQ834215121 | www.fakaweb.com | | |

(大额打赏/赞助可加我微信,并予加入上表)

---

# 加我微信,邀你加入微信讨论群
Expand Down
27 changes: 26 additions & 1 deletion application/pay/controller/Business.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,31 @@ public function Business($data = array())
}
}
//===服务订单
/**======发送邮箱=====*/
/**
* todo 【不上线】避免造成订单堵塞
$user = User::getByUid($order['uid']);
if($user && !empty($user['email'])){
$core = Core::where('id', '<>', 0)->column('value1', 'name'); //获取系统配置
$client_arr = getPayList($order['type'], 'alias');//支付方式信息
$type_name = empty($client_arr['name'])?'':$client_arr['name'];
$title = "【". $type_name . "收款到账】".$order['money']."元(".$core['title'].")";
$html = "————".$core['title']."————<br/>";
$html .= "系统订单号:{$order->out_trade_no}<br/>";
$html .= "订单来源:{$order->getSourceName()}<br/>";
$html .= "支付场景:{$order->getTradeTypeName()}<br/>";
$html .= "商户UID:{$order['uid']}<br/>";
$html .= "支付方式:{$type_name}<br/>";
$html .= "支付金额:{$order['money']}元<br/>";
$html .= "支付时间:{$order['payment_time']}<br/>";
$html .= "订单备注:{$order['remarks']}<br/>";
$html .= "————[系统收款提示邮件]————<br/>";
send_mail(trim($user['email']), trim($title), $html);
}
*/
/**======发送邮箱=====*/
return true;
} else {
return false;
Expand Down Expand Up @@ -117,4 +142,4 @@ public function Refund($data = array()){
}

}
}
}

0 comments on commit a5be594

Please sign in to comment.