haru haru 2 lat temu
rodzic
commit
3f0ab5f08c

+ 1 - 0
docker/compose/xiaoyu/admin/docker-compose.yml

@@ -10,6 +10,7 @@ services:
       - ../conf/etc/localtime:/etc/localtime:ro
       - ../conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
       - ../../../../data/upload:/var/www/html/data/upload
+      - ../../../../chinatelecom:/var/www/html/chinatelecom
     container_name: "panda-nginx"
     command: [nginx,'-g','daemon off;']
 

+ 22 - 0
vapi/control/sapi.php

@@ -0,0 +1,22 @@
+<?php
+
+class sapi
+{
+    private $url = 'https://sapi.ads.oppomobile.com/v1/clue/sendData';
+    private $ownerId = '1000178033';
+    private $API_ID = 'cbbf0a225cd44cba81b9b6e093ded0a2';
+    private $APIKEY = '0d10124566ff41c393c0c418a3ae147a';
+
+    private function create_token()
+    {
+        $time = time();
+        $sign = sha1($this->API_ID .$this->APIKEY . $time);
+        return base64_encode($this->ownerId. '.'. $this->API_ID. ',' .$time. ',' . $sign);
+    }
+
+    public function send($body)
+    {
+        $params['pageId'] = $body['channel_code'];
+        $params['ip'] = $_SERVER['REMOTE_ADDR'];
+    }
+}