|
|
@@ -6,10 +6,12 @@ use app\common\dao\shared\SharedProsperityUserDao;
|
|
6
|
6
|
use app\common\enum\CommonEnum;
|
|
7
|
7
|
use app\common\enum\shared\SharedProsperityRewardRecordEnum;
|
|
8
|
8
|
use app\common\model\shared\SharedProsperityUser;
|
|
|
9
|
+use app\common\repositories\shared\SharedProsperityRecommendConfigRepository;
|
|
9
|
10
|
use app\common\repositories\shared\SharedProsperityUserRepository;
|
|
10
|
11
|
use app\common\repositories\store\order\StoreGroupOrderRepository;
|
|
11
|
12
|
use app\common\repositories\store\order\StoreOrderRepository;
|
|
12
|
13
|
use app\common\repositories\user\UserRepository;
|
|
|
14
|
+use app\common\repositories\user\UserSignXfbRepository;
|
|
13
|
15
|
use app\traits\GzcApiRequest;
|
|
14
|
16
|
use think\facade\Db;
|
|
15
|
17
|
|
|
|
@@ -17,6 +19,35 @@ class Test
|
|
17
|
19
|
{
|
|
18
|
20
|
public function test()
|
|
19
|
21
|
{
|
|
|
22
|
+ /** @var StoreGroupOrderRepository $storeGroupOrderRepository */
|
|
|
23
|
+ $storeGroupOrderRepository = app()->make(StoreGroupOrderRepository::class);
|
|
|
24
|
+ $groupOrderId = '11135';
|
|
|
25
|
+ $res = $storeGroupOrderRepository->storeGroupOrderPaySuccess($groupOrderId);
|
|
|
26
|
+ dd($res);
|
|
|
27
|
+
|
|
|
28
|
+
|
|
|
29
|
+ /** @var UserSignXfbRepository $xfbRepository */
|
|
|
30
|
+ $xfbRepository = app()->make(UserSignXfbRepository::class);
|
|
|
31
|
+ // 结算
|
|
|
32
|
+ $res = $xfbRepository->settlement(['wx177572166462040882']);
|
|
|
33
|
+ dd($res);
|
|
|
34
|
+
|
|
|
35
|
+
|
|
|
36
|
+
|
|
|
37
|
+
|
|
|
38
|
+
|
|
|
39
|
+ $a = bcmul(99, CommonEnum::ORDER_EARNING_ALLOCATION['WonderfulLiving']['Lock']['BrokeragePrice']['Ratio']['code'], CommonEnum::CALCULATE_THE_NUMBER_OF_DECIMAL_PLACES);
|
|
|
40
|
+ $b = bcmul(198, CommonEnum::ORDER_EARNING_ALLOCATION['WonderfulLiving']['Lock']['BrokeragePrice']['Ratio']['code'], CommonEnum::CALCULATE_THE_NUMBER_OF_DECIMAL_PLACES);
|
|
|
41
|
+
|
|
|
42
|
+dd($a,$b);
|
|
|
43
|
+
|
|
|
44
|
+ // /** @var SharedProsperityRecommendConfigRepository $sharedProsperityRecommendConfigRepository */
|
|
|
45
|
+ // $sharedProsperityRecommendConfigRepository = app()->make(SharedProsperityRecommendConfigRepository::class);
|
|
|
46
|
+ // $sharedProsperityRecommendConfigEntityByMaxRewardRatio = $sharedProsperityRecommendConfigRepository->getSharedProsperityRecommendConfigEntityByMaxRewardRatio();
|
|
|
47
|
+ // // 利润 减去 顶格的直推奖,剩下的是PV值
|
|
|
48
|
+ // $pvProportion = bcsub('1', bcdiv($sharedProsperityRecommendConfigEntityByMaxRewardRatio->getRewardRatio(), '100', 4), 2);
|
|
|
49
|
+ // dd($pvProportion);
|
|
|
50
|
+
|
|
20
|
51
|
|
|
21
|
52
|
|
|
22
|
53
|
// // 1、获取订单数据
|