瀏覽代碼

优惠券详情异常

gorden 4 月之前
父節點
當前提交
b13095be31
共有 1 個文件被更改,包括 0 次插入11 次删除
  1. 0 11
      support/helpers_now.php

+ 0 - 11
support/helpers_now.php

@@ -142,17 +142,6 @@ function json($data, int $options = JSON_UNESCAPED_UNICODE): Response
     return new Response(200, ['Content-Type' => 'application/json'], json_encode($data, $options));
 }
 
-function json_success($message, $data = '', $options = JSON_UNESCAPED_UNICODE)
-{
-    $return = [
-        'code' => 200,
-        'message' => $message,
-        'data' => $data,
-    ];
-
-    return new Response(200, ['Content-Type' => 'application/json'], json_encode($return, $options));
-}
-
 function json_fail($message, $options = JSON_UNESCAPED_UNICODE)
 {
     $return = [