|
@@ -124,7 +124,7 @@ class StoreGp extends BaseModel
|
|
|
if($spuser && $user['spread_uid']>0 && $spuser['cycle_time']>time())
|
|
|
{
|
|
|
$balance = bcadd($spuser['brokerage_price'], $sp_brokeragePrice, 2);
|
|
|
- $mark = "公排号:" . $no . '推荐奖' . $order['recommend'] . "元,订单号:" . $order['order_id'];
|
|
|
+ $mark = "公排号:" . $no . '推荐奖' . $order['$sp_brokeragePrice'] . "元,订单号:" . $order['order_id'];
|
|
|
$res = UserBill::income('推荐奖', $spuser['uid'], 'now_money', 'brokerage', $sp_brokeragePrice, $order['id'], $balance, $mark, 1);
|
|
|
User::where('uid', $spuser['uid'])->inc('brokerage_price', $sp_brokeragePrice)->update();
|
|
|
}
|
|
@@ -142,7 +142,7 @@ class StoreGp extends BaseModel
|
|
|
private static function getbrokeragePrice($uid)
|
|
|
{
|
|
|
$num = User::where('spread_uid',$uid)->where('cycle_time','>',0)->count();
|
|
|
- if($uid==105) return sys_config('sp_tree_num',200);
|
|
|
+ if($uid==105) return sys_config('sp_tree_num',100);
|
|
|
if($num>2) return sys_config('sp_tree_num',200);
|
|
|
if($num>0) return sys_config('sp_one_num',200);
|
|
|
return 0;
|