|
|
@@ -87,25 +87,6 @@ class OrderClass extends BaseClass
|
|
|
20000 => [90, 100],
|
|
|
];
|
|
|
|
|
|
- /**
|
|
|
- * 售后付款单是否已经充值过了 ssh 20250801
|
|
|
- * @param $order
|
|
|
- * @param $set false 判断是否充值 true 标记为充值
|
|
|
- */
|
|
|
- public static function shOrderRecharge($order, $set = false)
|
|
|
- {
|
|
|
- $orderId = $order->id;
|
|
|
- $cacheKey = "sh_order_recharge_" . $orderId;
|
|
|
- if ($set) {
|
|
|
- Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 864000, 'has']);
|
|
|
- } else {
|
|
|
- $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
|
|
|
- if (!empty($has)) {
|
|
|
- util::fail('已经充值过了,请勿重复操作');
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
//因为开负数订单时引导库存变化 ssh 20250731
|
|
|
public static function shPayChange($order, $shop, $staff, $originOrder = null)
|
|
|
{
|