MCPcopy Create free account
hub / github.com/CoderOpen/waimai / fail

Method fail

app/Http/Controllers/Api/BaseController.php:38–46  ·  view source on GitHub ↗

* 操作失败 * * @param array $data * @param string $msg */

($msg = '成功', $code = 0, $data = [])

Source from the content-addressed store, hash-verified

36 * @param string $msg
37 */
38 protected function fail($msg = '成功', $code = 0, $data = [])
39 {
40 $result = [
41 'code' => $code,
42 'data' => $data,
43 'msg' => $msg,
44 ];
45 return response()->json($result)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
46 }
47}

Callers 12

hFunction · 0.80
QFunction · 0.80
app.jsFile · 0.80
kbFunction · 0.80
addSubscribeMethod · 0.80
addCouponLogMethod · 0.80
loginMethod · 0.80
amap-wx.jsFile · 0.80
cFunction · 0.80
dFunction · 0.80
eFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected