提交 9dabd864 编写于 作者: D devil_gong

支付信息+数据库字段优化

上级 38772e9f
......@@ -777,10 +777,10 @@ class BuyService
'original_price' => $v['original_price'],
'price' => $v['price'],
'spec' => empty($v['spec']) ? '' : json_encode($v['spec']),
'spec_weight' => $v['spec_weight'],
'spec_coding' => $v['spec_coding'],
'spec_barcode' => $v['spec_barcode'],
'buy_number' => $v['stock'],
'spec_weight' => empty($v['spec_weight']) ? 0.00 : (float) $v['spec_weight'],
'spec_coding' => empty($v['spec_coding']) ? '' : $v['spec_coding'],
'spec_barcode' => empty($v['spec_barcode']) ? '' : $v['spec_barcode'],
'buy_number' => intval($v['stock']),
'add_time' => time(),
];
if(Db::name('OrderDetail')->insertGetId($detail) <= 0)
......
......@@ -114,7 +114,7 @@ class OrderService
'total_price' => $order['total_price'],
'notify_url' => $url.'_notify.php',
'call_back_url' => $call_back_url,
'site_name' => MyC('home_seo_site_title', 'ShopXO', true),
'site_name' => MyC('home_site_name', 'ShopXO', true),
);
$pay_name = 'payment\\'.$payment[0]['payment'];
$ret = (new $pay_name($payment[0]['config']))->Pay($pay_data);
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册