|
|
|
@ -234,8 +234,7 @@ class BIZ_train_model extends CI_Model {
|
|
|
|
|
}
|
|
|
|
|
// 传入coli_sn获取订单号
|
|
|
|
|
public function coli_sn_get_coli_id($coli_sn){
|
|
|
|
|
$sql="SELECT COLI_ID FROM BIZ_ConfirmLineInfo WHERE COLI_SN = ?
|
|
|
|
|
";
|
|
|
|
|
$sql="SELECT COLI_ID FROM BIZ_ConfirmLineInfo WHERE COLI_SN = ? ";
|
|
|
|
|
$query = $this->HT->query($sql,array($coli_sn));
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
@ -250,4 +249,22 @@ class BIZ_train_model extends CI_Model {
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
//-----------------------------自动出票 end-----------
|
|
|
|
|
|
|
|
|
|
function SendMail($fromName, $fromEmail, $toName, $toEmail, $subject, $body) {
|
|
|
|
|
$toName = str_replace("'","''",$toName);
|
|
|
|
|
$body = str_replace("'","''",$body);
|
|
|
|
|
$sql = "INSERT INTO Email_AutomaticSend
|
|
|
|
|
(
|
|
|
|
|
M_ReplyToName, M_ReplyToEmail, M_ToName, M_ToEmail, M_Title, M_Body, M_Web,
|
|
|
|
|
M_FromName, M_State
|
|
|
|
|
)
|
|
|
|
|
VALUES
|
|
|
|
|
(
|
|
|
|
|
?, ?, N'{$toName}', ?, N'{$subject}', N'{$body}', ?, ?, 0
|
|
|
|
|
) ";
|
|
|
|
|
$query = $this->HT->query($sql, array($fromName, $fromEmail, $toEmail, 'cht', 'information'));
|
|
|
|
|
echo $query;
|
|
|
|
|
|
|
|
|
|
//return $query;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|