StakeholderIncomeSync.php
2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace App\Console\Commands\Test;
use App\Services\ApiService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
/**
* 合作伙同数据同步
* Class StakeholderIncomeSyncCommand
* @package App\Console\Commands
*/
class StakeholderIncomeSync extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'test:stakeholder:income:sync';
/**
* The console command description.
*
* @var string
*/
protected $description = '测试:权益人收益同步';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$data = '{"busiId":"301655656836890628","cardNo":"422202199304102431","cost":"0.0000000000000000","deductAmount":"0.0000000000000000","faxMoney":"0.0000000000000000","money":"610.8682662596855292","totalMoney":"610.8682662596855292","type":"1001601","title":"04-07\u6708TME\u7248\u7a0e\u8d26\u5355","paymentCompany":"\u6b66\u6c49\u55e8\u5e93\u6587\u5316\u4f20\u5a92\u6709\u9650\u516c\u53f8","addLevelTwoIncomeRequests":[{"actualTime":"2021-11-17T01:51:50.000000Z","busiId":"301655656832696320","faxMoney":"0.0000000000000000","money":"187.0116067929763017","totalMoney":"187.0116067929763017","paymentCompany":"\u6b66\u6c49\u55e8\u5e93\u6587\u5316\u4f20\u5a92\u6709\u9650\u516c\u53f8","songNum":12,"title":"202104\u6708\u8d26\u5355","type":"1001601"},{"actualTime":"2021-11-17T01:51:50.000000Z","busiId":"301655656836890624","faxMoney":"0.0000000000000000","money":"186.9999441787542127","totalMoney":"186.9999441787542127","paymentCompany":"\u6b66\u6c49\u55e8\u5e93\u6587\u5316\u4f20\u5a92\u6709\u9650\u516c\u53f8","songNum":12,"title":"202105\u6708\u8d26\u5355","type":"1001601"},{"actualTime":"2021-11-17T01:51:50.000000Z","busiId":"301655656836890626","faxMoney":"0.0000000000000000","money":"135.9242163789635148","totalMoney":"135.9242163789635148","paymentCompany":"\u6b66\u6c49\u55e8\u5e93\u6587\u5316\u4f20\u5a92\u6709\u9650\u516c\u53f8","songNum":12,"title":"202106\u6708\u8d26\u5355","type":"1001601"},{"actualTime":"2021-11-17T01:51:50.000000Z","busiId":"301655656836890627","faxMoney":"0.0000000000000000","money":"100.9324989089915000","totalMoney":"100.9324989089915000","paymentCompany":"\u6b66\u6c49\u55e8\u5e93\u6587\u5316\u4f20\u5a92\u6709\u9650\u516c\u53f8","songNum":12,"title":"202107\u6708\u8d26\u5355","type":"1001601"}]}';
$data = json_decode($data, true);
$http_res = ApiService::walletAddIncome($data);
echo '<pre>';
print_r($http_res);
exit();
}
}