Commit 1ccfcbf9 authored by ZhuChunYang's avatar ZhuChunYang

update

parent fee433aa
......@@ -20,7 +20,6 @@ class LotteryBusiness
{
$config = Yii::$app->params['lottery'];
$key = $config['key'];
$error = '';
$service = new LotteryService();
$trade_result = $service->trade($amount, $number, $way, $fee);
if ($trade_result['code'] == 0) { //交易成功
......@@ -31,6 +30,8 @@ class LotteryBusiness
$send_transaction_result = $service->sendTransaction($data);
if($send_transaction_result['code'] == 0){ //发送交易成功
return ['code' => 0,'result' => $send_transaction_result['result']];
}else{
$error = $send_transaction_result['msg'];
}
}else{
$error = $sign_result['msg'];
......
......@@ -132,6 +132,7 @@ class LotteryController extends Controller
public function actionTrade()
{
$res = LotteryBusiness::trade(1,12345,5,0);
var_dump($res);die;
}
public function actionLottery()
......
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