|
@@ -351,7 +351,7 @@ class Order extends Base
|
|
public function cancel()
|
|
public function cancel()
|
|
{
|
|
{
|
|
$order_id = input('order_id', 0);
|
|
$order_id = input('order_id', 0);
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
@@ -394,7 +394,7 @@ class Order extends Base
|
|
public function payed_cancel()
|
|
public function payed_cancel()
|
|
{
|
|
{
|
|
$order_id = input('order_id', 0);
|
|
$order_id = input('order_id', 0);
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
@@ -614,7 +614,7 @@ class Order extends Base
|
|
public function delete()
|
|
public function delete()
|
|
{
|
|
{
|
|
$order_id = input('order_id', 0);
|
|
$order_id = input('order_id', 0);
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
@@ -648,7 +648,7 @@ class Order extends Base
|
|
public function received()
|
|
public function received()
|
|
{
|
|
{
|
|
$order_id = input('order_id', 0);
|
|
$order_id = input('order_id', 0);
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
@@ -687,9 +687,9 @@ class Order extends Base
|
|
$anonymous = input('anonymous', 0);
|
|
$anonymous = input('anonymous', 0);
|
|
$comment = input('comment');
|
|
$comment = input('comment');
|
|
$order_id = input('order_id', 0);
|
|
$order_id = input('order_id', 0);
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
$product_id = input('product_id');
|
|
$product_id = input('product_id');
|
|
- $product_id = \addons\unishop\extend\Hashids::decodeHex($product_id);
|
|
|
|
|
|
+// $product_id = \addons\unishop\extend\Hashids::decodeHex($product_id);
|
|
|
|
|
|
$orderProductModel = new \addons\unishop\model\OrderProduct();
|
|
$orderProductModel = new \addons\unishop\model\OrderProduct();
|
|
$orderProduct = $orderProductModel->where(['product_id' => $product_id, 'order_id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$orderProduct = $orderProductModel->where(['product_id' => $product_id, 'order_id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
@@ -897,6 +897,9 @@ class Order extends Base
|
|
} else {
|
|
} else {
|
|
$product['evaluate'] = false;
|
|
$product['evaluate'] = false;
|
|
}*/
|
|
}*/
|
|
|
|
+ $product_find = Db::name('unishop_product')->where('id', $product['product_id'])->find();
|
|
|
|
+ $product['info'] = $product_find['info'];
|
|
|
|
+ $product['activetime'] = $product_find['activetime'];
|
|
}
|
|
}
|
|
|
|
|
|
// unset($order['evaluate']);
|
|
// unset($order['evaluate']);
|
|
@@ -988,7 +991,7 @@ class Order extends Base
|
|
public function refundInfo()
|
|
public function refundInfo()
|
|
{
|
|
{
|
|
$order_id = input('order_id');
|
|
$order_id = input('order_id');
|
|
- $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = \addons\unishop\extend\Hashids::decodeHex($order_id);
|
|
|
|
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel
|
|
$order = $orderModel
|
|
@@ -1047,7 +1050,7 @@ class Order extends Base
|
|
public function refund()
|
|
public function refund()
|
|
{
|
|
{
|
|
$order_id = input('order_id');
|
|
$order_id = input('order_id');
|
|
- $order_id = Hashids::decodeHex($order_id);
|
|
|
|
|
|
+// $order_id = Hashids::decodeHex($order_id);
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
$order = $orderModel->where(['id' => $order_id, 'user_id' => $this->auth->id])->find();
|
|
|
|
|
|
@@ -1137,7 +1140,7 @@ class Order extends Base
|
|
$this->error(__('Please fill in the express number'));
|
|
$this->error(__('Please fill in the express number'));
|
|
}
|
|
}
|
|
|
|
|
|
- $orderId = Hashids::decodeHex($orderId);
|
|
|
|
|
|
+// $orderId = Hashids::decodeHex($orderId);
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$orderModel = new \addons\unishop\model\Order();
|
|
$order = $orderModel
|
|
$order = $orderModel
|
|
->where(['id' => $orderId, 'user_id' => $this->auth->id])
|
|
->where(['id' => $orderId, 'user_id' => $this->auth->id])
|