|
@@ -83,12 +83,13 @@ class Core
|
|
|
*/
|
|
|
protected function createOrder($uid, $username, $account_id, $project_id, $product_id, $name, $cash, $type, $order_id = false)
|
|
|
{
|
|
|
+ $state = $order_id;
|
|
|
$db = Dever::db('pay/order');
|
|
|
if (!$order_id) {
|
|
|
$order_id = Dever::order();
|
|
|
}
|
|
|
$info = $db->one(array('order_id' => $order_id));
|
|
|
- if ($info) {
|
|
|
+ if ($info && !$state) {
|
|
|
return $this->createOrder($uid, $username, $account_id, $project_id, $product_id, $name, $cash, $type, $order_id);
|
|
|
} else {
|
|
|
$add['status'] = 1;
|