success('', $result); } public function taskStat(): Json { $params=$this->request->get(); $result = curl_post(env('project.worker_domain').'/middleapi/refund/stat',$params,$this->reqHeader); if($result['code'] == 0){ return $this->fail($result['msg']); } return json($result); } /** * @notes 退款记录 * @return \think\response\Json * @author 段誉 * @date 2023/3/1 9:47 */ public function record() { return $this->dataLists(new RefundRecordLists()); } public function taskRecord(): Json { $params=$this->request->get(['user_info', 'start_time', 'end_time', 'sn', 'order_sn']); $result = curl_post(env('project.worker_domain').'/middleapi/refund/record',$params,$this->reqHeader); if($result['code'] == 0){ return $this->fail($result['msg']); } return json($result); } /** * @notes 退款日志 * @return \think\response\Json * @author 段誉 * @date 2023/3/1 9:47 */ public function log() { $recordId = $this->request->get('record_id', 0); $result = RefundLogic::refundLog($recordId); return $this->success('', $result); } public function taskLog(): Json { $params=$this->request->get(['record_id']); $result = curl_post(env('project.worker_domain').'/middleapi/refund/log',$params,$this->reqHeader); if($result['code'] == 0){ return $this->fail($result['msg']); } return json($result); } }