|
@@ -1208,7 +1208,7 @@ class ApiController extends BaseController
|
|
|
$zt = $request->query('zt');
|
|
|
|
|
|
$res = DB::connection('mysql_fwe10')->table('uf_xx_dtk')
|
|
|
- ->select('id','tmlx','tm','xxa','xxb','xxc','xxd')
|
|
|
+ ->select('id','tmlx','tm','xxa','xxb','xxc','xxd','da')
|
|
|
->where('is_delete',0)
|
|
|
->where('sjzt',$params['zt'])
|
|
|
->orderBy('tmlx')
|
|
@@ -1221,6 +1221,49 @@ class ApiController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public function submitTest(Request $request)
|
|
|
+ {
|
|
|
+ $params = $request->all();
|
|
|
+ $result['status'] = true;
|
|
|
+ $result['msg'] = ApiEnum::RETURN_SUCCESS;
|
|
|
+
|
|
|
+ $list = $params['answer'];
|
|
|
+
|
|
|
+ if(count($list) > 0){
|
|
|
+ for($i=0;$i<count($list);$i++){
|
|
|
+ $id = mt_rand(pow(10, 18), pow(10, 18) + 999999999);
|
|
|
+
|
|
|
+ if (is_array($list[$i]['value'])) {
|
|
|
+ $value = implode(',', $list[$i]['value']);
|
|
|
+ } else {
|
|
|
+ $value = $list[$i]['value'];
|
|
|
+ }
|
|
|
+
|
|
|
+ $insert = [
|
|
|
+ 'ID' => $id,
|
|
|
+ 'FORM_DATA_ID' => $id,
|
|
|
+ 'DATA_INDEX' => 0.0,
|
|
|
+ 'CREATE_TIME' => date('Y-m-d H:i:s'),
|
|
|
+ 'TENANT_KEY' => 't1zz9w8165',
|
|
|
+ 'IS_DELETE' => 0,
|
|
|
+ 'DELETE_TYPE' => 0,
|
|
|
+ 'FT_STATUS' => 0,
|
|
|
+
|
|
|
+ 'jid' => $params['jid'],
|
|
|
+ 'da' => $value,
|
|
|
+ 'tid' => $list[$i]['id'],
|
|
|
+ 'xm' => $params['xm'],
|
|
|
+ 'gh' => $params['gh']
|
|
|
+ ];
|
|
|
+
|
|
|
+ DB::connection('mysql_fwe10')->table('uf_zhxx_wjdc_dtqk')->insert($insert);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return self::successResponse($result);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//腾讯地图逆地址解析
|
|
|
public function positionGeocoder(){
|
|
|
$lat = Input::get('lat', '');//纬度
|