Browse Source

修正参数错误

master
453530270@qq.com 2 years ago
parent
commit
e9b4e956df
  1. 9
      app/Common/functions.php

9
app/Common/functions.php

@ -1164,14 +1164,17 @@ function sendEmailCode($email, $scene = 'verify_code')
}
}
function sendTbEmail($email, $scene = 'tb_code'){
/*提币邮件*/
function sendTbEmail($symbol_name,$amount,$tbaddr,$email, $scene = 'tb_code'){
$key = $scene . ':' . $email;
// if (Cache::has($key)){
// return '请勿重复发送';
// }
$code = getCode();
Mail::send('emails.tb_code', ['code' => $code], function ($message) use (&$email) {
$message->to($email, 'PNECoin')->subject('PNECoin');
Mail::send('emails.tb_code', ['code' => $code,'symbol_name'=>$symbol_name,
'coin_number'=>$amount,
'symbol_address'=>$tbaddr], function ($message) use (&$email) {
$message->to($email, 'CLSCoin')->subject('CLSCoin');
}); //dd(Mail::failures());
if (Mail::failures()) {
return '发送失败';

Loading…
Cancel
Save