:(
Class 'Api\Org\lib\Pingpp\Pingpp' not found
错误位置
FILE: /Users/liming/Documents/svn/apimassage/2/App/Api/Controller/PayController.class.php LINE: 20
ThinkPHP3.2.1 { Fast & Simple OOP PHP fr
以下是代码=======
<?php
namespace Api\Controller;
use Api\Controller\CommonController;
//require_once(dirname(__FILE__) . '../../Org/lib/Pingpp.php');
import('Org.lib.Pingpp.Pingpp',dirname(__FILE__),'.php');
use Api\Org\lib\Pingpp\Pingpp;
/**
* PUSH模块
*/
class PayController extends CommonController{
public function retrieve(){
Pingpp::setApiKey("YOUR-KEY");
$ch = Pingpp_Charge::retrieve("ch_id");
}
public function refund(){
Pingpp::setApiKey("YOUR-KEY");
$ch = Pingpp_Charge::retrieve("ch_id");
$ch->refunds->create(
array(
"amount" => 10,
"desc
)
);
}
=================
有没有大拿帮忙解决一下。
最佳答案
