...
This commit is contained in:
parent
a31a551deb
commit
57b3ec4193
@ -50,10 +50,6 @@ use models\BcOrder;
|
||||
use services\LogService;
|
||||
use services\ShopAddItemService;
|
||||
|
||||
use function phpcommon\bnAdd_s;
|
||||
use function phpcommon\bnDiv_s;
|
||||
use function phpcommon\bnInit;
|
||||
|
||||
if (!function_exists('array_column')) {
|
||||
function array_column($arr2, $column_key)
|
||||
{
|
||||
@ -421,7 +417,7 @@ class ShopController extends BaseAuthedController
|
||||
$order_id_base = date('YmdHis') . "10000000";
|
||||
$divIdx = ($lastId) % 9999999;
|
||||
|
||||
$order_id = bnAdd_s($order_id_base, $divIdx);
|
||||
$order_id = phpcommon\bnAdd_s($order_id_base, $divIdx);
|
||||
$test = SqlHelper::update($conn, 't_web2_order', array('idx' => $lastId), array('order_id' => $order_id));
|
||||
if (!$test) {
|
||||
$this->_rspErr(5, "start purchase failed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user