dever 6 tahun lalu
induk
melakukan
f19879355e
1 mengubah file dengan 6 tambahan dan 2 penghapusan
  1. 6 2
      lib/Core.php

+ 6 - 2
lib/Core.php

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