{'hash'})->first(); if($contract){ if($contract->{'status'}!=1){ ErrorRecord::create([ 'm_id' => 0, 'msg' => '合约状态从异常', 'data' => json_encode($contract) ]); }else{ //检测交易信息 if($contract->{'type'}==1){ //初始合约 }else{ //复投合约 } } } } }