收款:外联邮件模板

feature/pay
lyt 7 years ago
parent cf47bc32b9
commit 9cef2510b4

@ -20,6 +20,24 @@ class PaymentService extends CI_Controller {
}
public function note_list()
{
$this->permission->is_admin(true);
$data = array();
// $data["paytext"] = $this->payment_status();
$data["method_name"] = $this->input->get_post("method_name");
$data["keywords"] = $this->input->get_post("keywords");
$data["date"] = $this->input->get_post("date");
empty($data['date']) ? $data['date'] = date('Y-m-d') : false;
if (!empty($data['keywords'])) {
$data['notelist'] = $this->note_model->search_key($data['keywords']);
} else {
$data['notelist'] = $this->note_model->search_date($data['date']);
}
$this->load->view("iPayLinks_list",$data);
return;
}
public function send_notify($transaction_id=NULL, $old_ssje=NULL)
{
log_message('error','send_notify begin ----');
@ -183,7 +201,7 @@ log_message('error','send_notify begin ----');
$toName = !empty($opi_firstname) ? $opi_firstname : '';
$toEmail = !empty($opi_email) ? $opi_email : '';
$subject = $orderid_info->orderid . '_' . $orderid_info->ordertype . ' / ' . $item->OPN_orderAmount . $item->OPN_currency . ' / ' . $fromName;
$body = $this->load->view('mail_templete', $item, true); //$item->pn_memo;
$body = $this->load->view('mail_advisor', $item, true); //$item->pn_memo;
$M_RelatedInfo = $item->OPN_SN;
$M_AddTime = $item->OPN_completeTime;
$M_State = 0;
@ -203,6 +221,7 @@ log_message('error','send_notify begin ----');
}
/** 支付方式参数对应的配置文件名 */
/** @Deprecated */
public function method_name($name)
{
$config_name = 'paypal';
@ -246,14 +265,12 @@ log_message('error','send_notify begin ----');
case '15016': // wxpay
$orderid_info = analysis_orderid($content_obj->out_trade_no);
break;
// TODO
case '15018': // iPaylinks
break;
case '15015': // alipay
break;
default:
# code...
break;

@ -40,6 +40,23 @@ class Online_payment_note_model extends CI_Model {
return $this->update_note($where, $column);
}
public function unsend_note($num=2)
{
$this->init_query();
$this->topnum = $num;
$this->send = " AND (OPN_noticeSendStatus='unsend' OR OPN_noticeSendStatus='' OR OPN_noticeSendStatus IS NULL) ";
return $this->query_note();
}
public function sendfail_note($num=2)
{
$this->init_query();
$this->topnum = $num;
$this->send = " AND OPN_noticeSendStatus='sendfail' ";
return $this->query_note();
}
public $topnum = false;
public $orderby = false;
public $send = false;
@ -83,23 +100,6 @@ class Online_payment_note_model extends CI_Model {
return $this->query_note();
}
public function unsend_note($num=2)
{
$this->init_query();
$this->topnum = $num;
$this->send = " AND (OPN_noticeSendStatus='unsend' OR OPN_noticeSendStatus='' OR OPN_noticeSendStatus IS NULL) ";
return $this->query_note();
}
public function sendfail_note($num=2)
{
$this->init_query();
$this->topnum = $num;
$this->send = " AND OPN_noticeSendStatus='sendfail' ";
return $this->query_note();
}
}

@ -0,0 +1 @@
<html> <head><meta http-equiv=Content-Type content="text/html; charset=utf-8"></head> <body style="font-size: 12px;font-family: arial,helvetica,sans-serif;margin-top:0;margin-bottom:0;"> <div class=ppmail> <table align=center border=0 cellpadding=0 cellspacing=0 width=100%> <tbody> <tr valign=top> <td width=100%> <table align=center border=0 cellpadding=0 cellspacing=0 style="color:#333333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;" width=100%> <tbody> <tr valign=top> <td> <?php $logo_path = ''; switch (strval($OPN_accountMethod)) { case '15002': case '15010': $logo_path = 'https://www.mycht.cn/css/images/paypal_logo.gif'; break; case '15018': $logo_path = 'https://www.ipaylinks.com/img/common/logo-en.png'; break; case '15016': $logo_path = 'https://www.mycht.cn/css/images/wepaylogo.png'; break; case '15015': $logo_path = 'https://data.chinahighlights.com/pic/alipay_logo.png'; break; default: break; } ?> <img src="<?php echo $logo_path; ?>" border=0 height=55 alt="payment logo"> </td> <td valign=middle align=right> <?php echo $OPN_completeTime;?> <br>Transaction ID:&nbsp;&nbsp; <?php echo $OPN_transactionId;?> </td> </tr> </tbody> </table> <div style="margin-top: 10px;color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;"> <span style="color:#333333 !important;font-weight:bold;font-family: arial,helvetica,sans-serif;">Hello Guilin China International Travel Service Co.,Ltd,</span> <br> <span style=font-size:14px;color:#C88039;font-weight:bold;text-decoration:none;>You received a payment of <?php echo $OPN_orderAmount;?> <?php echo $OPN_currency;?> </span> <br> <table cellpadding=5 style="color:#333333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;"> <tbody> <tr> <td valign=top> <span style=font-weight:bold;color:#333333;>Seller Protection-</span> <span style="color: #4c8f3a;"> </span> </td> <td> </td> </tr> </tbody> </table> <div style="margin-top:0px;border-bottom:1px solid #aaaaaa;"> </div> <table border=0 cellpadding=0 cellspacing=0 style="color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px; margin-bottom:5px;" width=98% align=left> <tbody> <tr> <td style=padding-top:5px; valign=top width=50% align=left> <span style=color:#333333;font-weight:bold;>Buyer</span> <br> <?php echo $OPN_payerName;?> <br> <?php echo $OPN_payerEmail;?> <br> </td> <td style=padding-top:5px; valign=top> </td> </tr> </tbody> </table> <table align=center border=0 cellpadding=0 cellspacing=0 style="clear:both;color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;margin-top:5px;" width=100%> <tbody> <tr> <td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=330 align=left>Description</td> <td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=75 align=right>&nbsp;</td> <td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=75 align=right>&nbsp;</td> <td style="border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;" width=80 align=right>Amount</td> </tr> <tr> <td style=padding:10px; width=330 align=left> <?php echo $OPN_orderId;?> <br> </td> <td style=padding:10px; width=75 align=right> </td> <td style=padding:10px; width=75 align=right> </td> <td style=padding:10px; width=80 align=right> <?php echo $OPN_orderAmount;?> <?php echo $OPN_currency;?> </td> </tr> </tbody> </table> </tr> </tbody> </table> </div> </body> </html>
Loading…
Cancel
Save