Commit e35b74c4 e35b74c47ba75e59bf25512121027bfa6d9227b7 by lemon

*

1 parent f39cd035
......@@ -3,9 +3,7 @@
namespace App\Console\Commands;
use App\Helper\CacheKeyTools;
use App\Helper\ErrorCode;
use App\Helper\RedisClient;
use App\Helper\Response;
use App\Models\Legal\Bills;
use App\Models\Legal\Company;
use App\Models\Legal\StakeholderIncomeSyncApp;
......
<?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();
}
}