This commit is contained in:
aozhiwei 2019-09-02 18:54:59 +08:00
parent 21475decb1
commit 3fd85aa09d

View File

@ -769,8 +769,9 @@ class ActivityController{
//redpack201908191405_xxxxx
protected function getOrderId($accountid)
{
$mysql_conf = getMysqlConfig(crc32($accountid));
$conn = $this->getMysql($accountid);
$orderid_pre = 'redpack' . strftime('%y%m%d%H%M%S');
$orderid_pre = 'rp' . strftime('%y%m%d%H%M%S');
$ret = $conn->execScript("INSERT INTO orderidx(createtime) VALUES(:createtime);",
array(
'createtime' => time()
@ -782,7 +783,7 @@ class ActivityController{
if (empty($row)) {
die();
}
$orderid = $orderid_pre . 'idx' . $row[0];
$orderid = $orderid_pre . 'db' . $mysql_conf['instance_id'] . 'idx' . $row[0];
return $orderid;
}