|
@@ -3,6 +3,7 @@
|
|
|
namespace liuniu\repositories;
|
|
|
|
|
|
use app\common\model\Lave as LaveModel;
|
|
|
+use app\common\model\LaveMonth as LaveMonthModel;
|
|
|
use app\common\model\UserRelation;
|
|
|
use liuniu\MiniProgramService;
|
|
|
use liuniu\WechatService;
|
|
@@ -89,7 +90,7 @@ class LaveRepository
|
|
|
public static function wxpaySign($cid, $orderId,$plan_record, $field = "order_id")
|
|
|
{
|
|
|
if (is_string($orderId))
|
|
|
- $orderInfo = LaveModel::where($field, $orderId)->find();
|
|
|
+ $orderInfo = LaveMonthModel::where($field, $orderId)->find();
|
|
|
else
|
|
|
$orderInfo = $orderId;
|
|
|
if (!$orderInfo || !isset($orderInfo['paid'])) exception('支付订单不存在!');
|
|
@@ -115,7 +116,7 @@ class LaveRepository
|
|
|
public static function jsPaySign($cid, $orderId,$plan_record, $field = 'order_id')
|
|
|
{
|
|
|
if (is_string($orderId))
|
|
|
- $orderInfo = LaveModel::where($field, $orderId)->find();
|
|
|
+ $orderInfo = LaveMonthModel::where($field, $orderId)->find();
|
|
|
else
|
|
|
$orderInfo = $orderId;
|
|
|
if (!$orderInfo || !isset($orderInfo['paid'])) exception('支付订单不存在!');
|