orderNo = $body; return $this; } public function get() { $params=[ 'app_id'=>ByteDance::appId(), 'out_order_no'=>$this->orderNo, ]; $params['sign']=ByteDance::sign($params); $data=ByteDance::httpPost('https://developer.toutiao.com/api/apps/ecpay/v1/query_order',$params,[],false); user_log('dyQueryOrderPayed',['orderNo'=>$this->orderNo,'data'=>$data]); return $data['err_no']===0; } public function getWangKa() { $params=[ 'app_id'=>ByteDance::appIdTwo(), 'out_order_no'=>$this->orderNo, ]; $params['sign']=ByteDance::signWangKa($params); $data=ByteDance::httpPost('https://developer.toutiao.com/api/apps/ecpay/v1/query_order',$params,[],false); user_log('dyQueryOrderPayed',['orderNo'=>$this->orderNo,'data'=>$data]); return $data['err_no']===0; } public function getHaoYuan() { $params=[ 'app_id'=>ByteDance::appIdThree(), 'out_order_no'=>$this->orderNo, ]; $params['sign']=ByteDance::signHaoYuan($params); $data=ByteDance::httpPost('https://developer.toutiao.com/api/apps/ecpay/v1/query_order',$params,[],false); user_log('dyQueryOrderPayed',['orderNo'=>$this->orderNo,'data'=>$data]); return $data['err_no']===0; } }