Пример #1
0
 public function testjava($id)
 {
     $url = C('javaback') . '';
     $json = '';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #2
0
 public function getDetailsList($groupid, $openid)
 {
     $url = C('javaback') . '/bToBStatistics/getDetailsList.action?groupId=' . $groupid . '&wechatId=' . $openid;
     $json = '';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #3
0
 public function get($openid)
 {
     $url = C('javaback') . '/user/get.action?wechatId=' . $openid;
     $json = '{"data":{"user":{"id":1,"token":1,"wechatId":"12345","nickName":"王 峰","mobile":"13162951502","macId":"dadadaaf","headImgUrl":"baidu.com","createTime":"2015-09-13 10:37:53","updateTime":"2015-09-13 10:37:53","customer":true,"deviceOwner":false,"installser":false,"admin":false},"userAccount":{"id":1,"userId":1,"balance":990,"point":0,"createTime":"2015-09-13 10:37:54","updateTime":"2015-09-19 23:26:50","version":1},"carList": [{"id":1,"userId":1,"carModelId":1,"carNo":"沪 A11111","isDefault":false,"createTime":"2015-09-19 22:19:36","updateTime":"2015-09-19 22:19:40"}]},"code":"A00000","msg":null}';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #4
0
 public function selectDeviceByGroupId($groupId)
 {
     $url = C('javaback') . '/proxyGroup/selectDeviceByGroupId.action?groupId=' . $groupId;
     $json = '{"data":[{"id":100,"owner":28,"sn":"a9926ee9","model":1,"city":null,"longitude":"","latitude":"","address":"钱龙测试","peripheral":null,"ip":null,"serverIp":null,"serverPort":null,"pic":"11","battery":0,"status":"02","capacity":0,"listShareTime":null,"user":null,"isOrder":null,"isOwner":null,"version":1001,"path":"/opt/15V1_02Release.bin","time":null,"week":null,"paramMap":{"isOnline":false},"deviceAscription":null,"groupId":null,"deviceType":null},{"id":102,"owner":10,"sn":"021949d2","model":1,"city":null,"longitude":"120.206788","latitude":"30.215385","address":"test秦风","peripheral":null,"ip":null,"serverIp":null,"serverPort":null,"pic":null,"battery":null,"status":"01","capacity":0,"listShareTime":null,"user":null,"isOrder":null,"isOwner":null,"version":null,"path":null,"time":"17:25","week":"MON,TUE,WED,THU,FRI,SAT,SUN","paramMap":{"isOnline":false},"deviceAscription":null,"groupId":null,"deviceType":null}],"code":"A00000","msg":"查询成功!"}';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #5
0
 public function testjava($id)
 {
     $id = urlencode($id);
     //防止传递了一些不知道啥的字符
     $url = C('javaback') . '';
     $json = '';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #6
0
 public function updateDeviceInfo($dvcid, $owner, $sn, $model, $city, $lgtd, $lttd, $address, $peripheral, $ip, $serverIp, $serverPort, $pic, $battery, $status, $capacity, $listShareTime, $user, $isOrder, $isOwner, $version, $path, $time, $week, $paramMap, $deviceAscription, $groupId, $deviceType, $newSn)
 {
     $url = C('javaback') . '/device/updateDeviceInfo.action?id=' . $dvcid . '&owner=' . $owner . '&sn=' . $sn . '&model=' . $model . '&city=' . $city . '&longitude=' . $lgtd . '&latitude=' . $lttd . '&address=' . $address . '&peripheral=' . $peripheral . '&ip=' . $ip . '&serverIp=' . $serverIp . '&serverPort=' . $serverPort . '&pic=' . $pic . '&battery=' . $battery . '&status=' . $status . '&capacity=' . $capacity . '&listShareTime=' . $listShareTime . '&user='******'&isOrder=' . $isOrder . '&isOwner=' . $isOwner . '&version=' . $version . '&path=' . $path . '&time=' . $time . '&week=' . $week . '&paramMap=' . $paramMap . '&deviceAscription=' . $deviceAscription . '&groupId=' . $groupId . '&deviceType=' . $deviceType . '&newSn=' . $newSn;
     $json = '';
     $arr = url2arr($url, $json);
     return $arr;
 }
Пример #7
0
 public function appointCancelWithScan($openid, $odrid)
 {
     $url = C('javaback') . '/order/appointCancelWithScan.action?wechatId=' . $openid . '&orderId=' . $odrid;
     $json = '';
     $arr = url2arr($url, $json);
     return $arr;
 }