Skip to content

Commit

Permalink
v3 sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyutian committed May 22, 2021
1 parent fda7332 commit 992a4c4
Show file tree
Hide file tree
Showing 27 changed files with 847 additions and 821 deletions.
6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/tracking-sdk-php.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Autoloader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

class Autoloader
{
/**
* Autoloade Class in SDK.
* PS: only load SDK class
* @param string $class class name
* @return void
*/
public static function autoload($class)
{
$filename = dirname(__FILE__) . "/{$class}.php";
if (file_exists($filename)) require_once($filename);
else die("class '{$class}' can not found");
}

}

spl_autoload_register('Autoloader::autoload');
?>
16 changes: 0 additions & 16 deletions Init.class.php

This file was deleted.

Loading

0 comments on commit 992a4c4

Please sign in to comment.