|
|
@@ -28,21 +28,12 @@ class ContractController extends FrontController
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
*/
|
|
|
function getInvestData(){
|
|
|
- $mId=MemberServer::creatServer()->getMemberId();
|
|
|
$sysAddress=CommonServer::creatServer()->getConfigValue('sys_address');
|
|
|
- $num=Contract::where('m_id',$mId)->where('status',2)->count();
|
|
|
- $sendNum=Contract::where('m_id',$mId)->where('status',1)->count();
|
|
|
- if($num>0){
|
|
|
- $investId=2;
|
|
|
- }else{
|
|
|
- $investId=1;
|
|
|
- }
|
|
|
- $investData=Invest::where('id',$investId)->select(['id','invest_money'])->first();
|
|
|
+ $investData=Invest::where('id',1)->select(['id','invest_money'])->first();
|
|
|
if(empty($investData)){
|
|
|
return $this->apiResponseError('信息异常');
|
|
|
}
|
|
|
$investData->{'sysAddress'}=$sysAddress;
|
|
|
- $investData->{'sendNum'}=$sendNum;
|
|
|
return $this->apiResponseSuccess('获取信息成功',$investData);
|
|
|
}
|
|
|
|
|
|
@@ -81,13 +72,13 @@ class ContractController extends FrontController
|
|
|
'broadcast_data'=>'',
|
|
|
'error_msg'=>'',
|
|
|
'money'=>$investData->{'invest_money'},
|
|
|
+ 'platform_money'=>$investData->{'platform_money'},
|
|
|
'direct_proportion'=>$investData->{'direct_proportion'},
|
|
|
- 'grant_proportion'=>$investData->{'grant_proportion'},
|
|
|
- 'point_proportion'=>$investData->{'point_proportion'},
|
|
|
- 'dao_proportion'=>$investData->{'dao_proportion'},
|
|
|
- 'technology_proportion'=>$investData->{'technology_proportion'},
|
|
|
- 'reveal_proportion'=>$investData->{'reveal_proportion'},
|
|
|
- 'parent_proportion'=>$investData->{'parent_proportion'},
|
|
|
+ 'indirect_proportion'=>$investData->{'indirect_proportion'},
|
|
|
+ 'team_proportion'=>$investData->{'team_proportion'},
|
|
|
+ 'common_proportion'=>$investData->{'common_proportion'},
|
|
|
+ 'sediment_proportion'=>$investData->{'sediment_proportion'},
|
|
|
+ 'agency_proportion'=>$investData->{'agency_proportion'},
|
|
|
'contract_sn'=>IndentNumServer::creatServer()->getIndentNum(1),
|
|
|
]);
|
|
|
if(empty($contractData)){
|