Commit 18050765 authored by 夏彬's avatar 夏彬

添加testapi

parent 2ea977fd
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 22/11/2017
* Time: 4:13 PM
*/
use internalApi\bbs\User;
require __DIR__.'/_init.php';
\internalApi\bbs\Test::setDebug(true);
$data = \internalApi\bbs\Test::index('123123');
print_r($data);
\ No newline at end of file
...@@ -12,5 +12,5 @@ require __DIR__.'/_init.php'; ...@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
User::setDebug(true); User::setDebug(true);
$uid = 42; $uid = 42;
$data = User::getGoldCoin($uid); $data = User::updateGoldCoin('15395081586',10,'测试','测试内容');
print_r($data); print_r($data);
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 22/11/2017
* Time: 4:12 PM
*/
namespace internalApi\bbs;
use internalApi\base\Client;
class Test extends Client
{
public static function index($test){
return self::call('test.index',compact('test'));
}
}
\ No newline at end of file
...@@ -46,4 +46,5 @@ class User extends Client ...@@ -46,4 +46,5 @@ class User extends Client
public static function updateGoldCoin($telephone,$num,$title,$text){ public static function updateGoldCoin($telephone,$num,$title,$text){
return self::call('user.updateGoldCoin', compact('telephone','num','title','text')); return self::call('user.updateGoldCoin', compact('telephone','num','title','text'));
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment