|
|
@@ -1083,6 +1083,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$this->getOrderAward($order); //订单收货赠送分红额度等等
|
|
|
@file_put_contents('quanju.txt', "-测试2\r\n", 8);
|
|
|
$this->spreadOrder($order['uid'],$order['order_id']); //查找上级是否有冻结份额
|
|
|
+ @file_put_contents('quanju.txt', "-是否全部终结\r\n", 8);
|
|
|
}
|
|
|
|
|
|
// 订单收货赠送分红额度
|
|
|
@@ -1362,8 +1363,8 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// 看看上级有没有冻结份额
|
|
|
public function spreadOrder($uid,$order_id){
|
|
|
$spread_uid = User::where('uid', $uid)->value('spread_uid');
|
|
|
+ @file_put_contents('quanju2.txt',$spread_uid."-上级uid\r\n",8);
|
|
|
if ($spread_uid>0){
|
|
|
- @file_put_contents('quanju2.txt',$spread_uid."-上级uid\r\n",8);
|
|
|
$user = User::where('uid', $spread_uid)->find();
|
|
|
@file_put_contents('quanju2.txt',$user['unclaimed_range']."-冻结额度\r\n",8);
|
|
|
if ($user['unclaimed_range']>0){
|