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

Method success

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

* 操作成功 * * @param array $data * @param string $msg */

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

Source from the content-addressed store, hash-verified

20 * @param string $msg
21 */
22 protected function success($data = [], $msg = '成功')
23 {
24 $result = [
25 'code' => 1,
26 'data' => $data,
27 'msg' => $msg,
28 ];
29 return response()->json($result)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
30 }
31
32 /**
33 * 操作失败

Callers 10

addSubscribeMethod · 0.80
addCouponLogMethod · 0.80
indexMethod · 0.80
projectMethod · 0.80
sendMsgMethod · 0.80
loginMethod · 0.80
cFunction · 0.80
dFunction · 0.80
fFunction · 0.80
amap-wx.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected