---
# System prepended metadata

title: 機器人依賴性
tags: [實習]

---

###### tags: `實習`
# 機器人依賴性
## bot_2/index.php

### 依賴檔案
```

include_once(dirname(__FILE__) . "/function.php");

include_once(dirname(__FILE__) . "/lib/mysqli.php");

include_once(dirname(__FILE__) . "/lib/curl.php");

include_once(dirname(__FILE__) . "/lib/Points.php");
```
### api
```
$response = $curl->postTo($postdata, "http://60.250.133.83/line_bot_api/api_new.php");

$.post('gps/shops_data.php')

$.post('gps/gps_distance.php'

$allLineUserId1 = json_decode($curl->getTo("https://" . $_SERVER['HTTP_HOST'] . "/bot_2/api/all_line_user_id.php"));

$allLineUserId2 = json_decode($curl->getTo("https://" . $_SERVER['HTTP_HOST'] . "/bot_3/api/all_line_user_id.php"));

xhr.open('GET', 'https://zeneatea.com/worry_use_admin_data/distance.php?address='+this_address, true);

const seriesApiPath = 'series/'
const drinkApiPath = 'drink/'
const inventoryStatusApiPath = 'admin/inventorystatus/'
 $.ajax({
      url: seriesApiPath,
      
 $.ajax({
            url: seriesApiPath + series.series_id,      

$.ajax({
              url: inventoryStatusApiPath,
          
```
### CSS
```
<link href="assets/lib/bootstrap-4.2.1/css/bootstrap.min.css?v=1.0.0" rel="stylesheet">
    <link href="assets/lib/fontawesome-5.10.2/css/all.min.css?v=1.0.0" rel="stylesheet">
    <link href="assets/lib/onepage-scroll-1.3.1/onepage-scroll.css?v=1.0.0" rel="stylesheet">
    <link href="assets/lib/flickity/flickity.min.css?v=1.0.0" rel="stylesheet">
    <link href="assets/lib/mobiscroll/css/mobiscroll.custom-3.0.0-beta2.min.css?v=1.0.0" rel="stylesheet">
    <link href="assets/css/main.css?v=1.0.8" rel="stylesheet">
    <link href="assets/css/float.css?v=1.0.10" rel="stylesheet">
    <link href="assets/css/loading.css?v=1.0.3" rel="stylesheet">
    <link href="assets/css/scrollbar.css?v=1.0.4" rel="stylesheet">
    <link href="assets/css/flickity.css?v=1.0.13" rel="stylesheet">
```
### Melthod
```
$points->get()
$mysqli->getUserInvitationCode($user_id);
count($mysqli->getUserOrderData($user_id))
$mysqli->saveUserInfoFromCookie($user_id, $name, $telephone, $address, $now_datetime);
```
### js
```
<script src="assets/lib/jquery/jquery-3.4.1.min.js?v=1.0.0"></script>
<script src="assets/lib/bootstrap-4.2.1/js/bootstrap.min.js?v=1.0.0"></script>
<script src="assets/lib/js-cookie/js.cookie-2.2.1.min.js?v=1.0.0"></script>
<script src="assets/lib/js-storage-1.0.4/js.storage.min.js?v=1.0.0"></script>
<script src="assets/lib/onepage-scroll-1.3.1/jquery.onepage-scroll.modify.js?v=1.0.0"></script>
<script src="assets/lib/flickity/flickity.pkgd.min.js?v=1.0.0"></script>
<script src="assets/lib/mobiscroll/js/mobiscroll.custom-3.0.0-beta2.min.js?v=1.0.0"></script>
<script src="assets/js/scroller.js?v=1.0.45"></script>
<script src="assets/js/functions.js?v=1.0.90"></script>
```

目前猜測:
1.mysqli 當掉，導致飲料載入失敗
2.api 無法連接
(1)目前只有連接到外面
$curl->postTo($postdata, "http://60.250.133.83/line_bot_api/api_new.php");
(2)剩餘的都在https://zeneatea.com/
但如果這個網站掉線，理論上應該會出現404 not found
