$order_id, 'paid' => 1])) return true; return StoreOrder::paySuccess($order_id); } catch (\Exception $e) { return false; } } /** * 订单支付成功之后 * @param string|null $order_id 订单id * @return bool */ public static function aliProduct(string $order_id = null) { try { if (StoreOrder::be(['order_id' => $order_id, 'paid' => 1])) return true; return StoreOrder::paySuccess($order_id, 'ali'); } catch (\Exception $e) { return false; } } /** * 充值成功后 * @param string|null $order_id 订单id * @return bool */ public static function wechatUserRecharge(string $order_id = null) { try { if (UserRecharge::be(['order_id' => $order_id, 'paid' => 1])) return true; return UserRecharge::rechargeSuccess($order_id); } catch (\Exception $e) { return false; } } /** * 充值成功后 * @param string|null $order_id 订单id * @return bool */ public static function aliUserRecharge(string $order_id = null) { try { if (UserRecharge::be(['order_id' => $order_id, 'paid' => 1])) return true; return UserRecharge::rechargeSuccess($order_id); } catch (\Exception $e) { return false; } } }