支付信息+数据库字段优化
parent
38772e9f13
commit
9dabd8649a
|
|
@ -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);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue