代币优化
This commit is contained in:
@@ -8,6 +8,7 @@ use app\common\service\ContractService;
|
||||
use app\common\service\DemandBiddingService;
|
||||
use app\common\service\DemandService;
|
||||
use app\common\service\OrderShipService;
|
||||
use app\common\service\VirtualPayService;
|
||||
use think\exception\HttpResponseException;
|
||||
use think\Lang;
|
||||
use think\Validate;
|
||||
@@ -273,6 +274,9 @@ class Demand extends Api
|
||||
try {
|
||||
$demandId = $this->request->param('demandId', 0);
|
||||
$info = ContractService::getWinBiddingContract($demandId);
|
||||
$demand = DemandService::getOne(['id' => $demandId]);
|
||||
$platform = $demand ? VirtualPayService::normalizePayPlatform($demand->pay_platform) : '';
|
||||
$info->pay_platform = $platform !== '' ? $platform : 'android';
|
||||
if (empty($info->data_json['customData']) && ($firstContract = ContractService::getFirstContract($demandId))) {
|
||||
$data_json = $info->data_json;
|
||||
$data_json['customData'] = $firstContract->data_json['customData'] ?? [];
|
||||
|
||||
Reference in New Issue
Block a user