1, 'B' => 2, 'C' => 3, 'D' => 4, 'E' => 5, 'F' => 6, 'G' => 7, ]; $level = array_key_exists($rule, $level) ? $level[$rule] : null; $result = Config::getConfigByKey($rule, $access); // $config = Proxy::getConfig(\Auth::id(), null, null, null, $level[$rule])->upgrade_money; // 获取代理费 $money = Upgrade::getCost($level, \Auth::user()); return showJson(101, 1001, [ 'protocol' => $result, 'money' => $money ]); } /** * 判断是否开通担保协议 * @author lyh * @date 2019/4/15 * @return \Illuminate\Contracts\Routing\ResponseFactory|\Symfony\Component\HttpFoundation\Response * @description */ public function guarantee() { $res = Config::getValue('GUARANTEE'); return showJsonSucc(1001, ['guarantee' => $res]); } }