...
|
...
|
@@ -56,7 +56,7 @@ class OrderModel extends Model |
|
|
$wallet = [
|
|
|
'user_id' => $orderInfo['user_id'],
|
|
|
'type' => 0,
|
|
|
'cost' => $orderInfo['order_amount'],
|
|
|
'cost' => $amount,
|
|
|
'create_time' => time()
|
|
|
];
|
|
|
if (Db::name('my_wallet')->insert($wallet)) {
|
...
|
...
|
@@ -108,6 +108,10 @@ class OrderModel extends Model |
|
|
}
|
|
|
if ($go == 'commit') {
|
|
|
Db::commit();
|
|
|
if($orderInfo['payment'] == 1) {
|
|
|
echo "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
|
|
|
exit();
|
|
|
}
|
|
|
return true;
|
|
|
} else {
|
|
|
Db::rollback();
|
...
|
...
|
|