$order_info['order_no']]); $order->is_pay = $order_info['is_pay']; $order->pay_at = $order_info['updated_at']; if (!$order->save()) { throw new Exception(HigoRechargeOrders::getStaticError()); } $wallet_text = HiGoEnum::getHigoWalletText($order->mall_id); $hi_bei_name = $wallet_text[HiGoEnum::WALLET_TYPE_HI_BEI]; $desc = $hi_bei_name . '充值'; if ($order_info['is_pay'] == HigoRechargeOrders::IS_PAY) { $wallet_log = [ 'mall_id' => $order->mall_id, 'user_id' => $order->user_id, 'change_num' => $order->hi_bei, 'desc' => $desc, 'source_table' => HigoRechargeOrders::tableName(), 'source_table_id' => $order->id, 'from_type' => HiGoEnum::FROM_TYPE_USER_RECHARGE, 'wallet_type' => HiGoEnum::WALLET_TYPE_HI_BEI, 'is_send' => true ]; $result = WalletLogic::handleInQueue($wallet_log); if ($result === false) { throw new Exception('系统繁忙,请稍后再试'); } } //unlock LockHelper::uLock($lock_key, $identification); return true; } catch (Exception $e) { echo 'Higo充值失败Message: ' . $e->getMessage() . $e->getFile() . $e->getLine(); LockHelper::uLock($lock_key, $identification); $this->setStaticError($e->getMessage()); return false; } } }