insert($data); }//end addPlatformUser() /** * 查询验证码 */ public function selectPlatformUser($platformWhere) { // 添加验证码 $platform = $this ->field('code_key, code_time') ->where($platformWhere) ->find(); return [ 'code' => 1, 'msg' => '', 'data' => $platform, ]; }//end addCode() /** * 删除验证码 */ public function delPlatformUser($platformWhere) { // 删除验证码 $platform = $this ->where($platformWhere) ->delect(); }//end delPlatformUser() }