移动端修复:
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfoTwo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfoTwo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
public static function billDoesDataExist($uid, $category, $type, $number, $link_id, $pm = 1)
{
return self::be(['uid' => $uid, 'category' => $category, 'pm' => $pm, 'type' => $type, 'number' => $number, 'link_id' => $link_id, 'status' => 1]);
}
pc端修复:
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfoTwo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
$bill = UserBill::billDoesDataExist($userInfoTwo['spread_uid'], 'now_money', 'brokerage', $brokeragePrice, $orderInfo['id']);
if ($bill) return true;
public static function billDoesDataExist($uid, $category, $type, $number, $link_id, $pm = 1)
{
return self::be(['uid' => $uid, 'category' => $category, 'pm' => $pm, 'type' => $type, 'number' => $number, 'link_id' => $link_id, 'status' => 1]);
}
知识付费 v2.1.6版本可以直接覆盖