|
|
@@ -1100,6 +1100,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
$type = 6;
|
|
|
}
|
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
|
+ @file_put_contents('quanju.txt', json_encode($price) . "-积分金额1\r\n", 8);
|
|
|
// 创建用户账单仓库实例
|
|
|
$make = app()->make(UserBillRepository::class);
|
|
|
$user = User::where('uid', $order['uid'])->find();
|
|
|
@@ -1273,6 +1274,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
public function getSpreadIntegral($order, $type,$user)
|
|
|
{
|
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
|
+ @file_put_contents('quanju.txt', json_encode($price) . "-积分金额2\r\n", 8);
|
|
|
// $spread_uid = User::where('uid', $order['uid'])->value('spread_uid');
|
|
|
$order_award_range=0;
|
|
|
if ($user['spread_uid']!=0){
|
|
|
@@ -1345,6 +1347,7 @@ class StoreOrderRepository extends BaseRepository
|
|
|
// 服务中心核销节能油
|
|
|
public function confirmOil($order){
|
|
|
$price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); //分红积分价格
|
|
|
+ @file_put_contents('quanju.txt', json_encode($price) . "-积分金额3\r\n", 8);
|
|
|
$MerchantRepository = app()->make(MerchantRepository::class);
|
|
|
$uid = Merchant::where('mer_id',$order['mer_id'])->value('uid');
|
|
|
$award_integral = User::where('uid',$uid)->value('award_integral');
|