作者 李小龙

表单提交返回调整

@@ -449,7 +449,7 @@ public function deleteDirectory($path) @@ -449,7 +449,7 @@ public function deleteDirectory($path)
449 * @param $request 449 * @param $request
450 * @param string $type 450 * @param string $type
451 * @param int $traffic 451 * @param int $traffic
452 - * @return string 452 + * @return string|void
453 */ 453 */
454 public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRAFFICZERO) 454 public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRAFFICZERO)
455 { 455 {
@@ -491,7 +491,8 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA @@ -491,7 +491,8 @@ public function transmit($request, $type = self::TYPEVISIT, $traffic = self::TRA
491 } 491 }
492 @file_put_contents(storage_path('logs/fail_req/' . date('Y-m-d') . '.log'), var_export($dataJson, true) . PHP_EOL, FILE_APPEND); 492 @file_put_contents(storage_path('logs/fail_req/' . date('Y-m-d') . '.log'), var_export($dataJson, true) . PHP_EOL, FILE_APPEND);
493 } 493 }
494 - return $this->success(); 494 + $this->response("success",self::SUCCESS,$resp);
  495 + return;
495 } 496 }
496 497
497 /** 498 /**