29 lines
980 B
PHP
29 lines
980 B
PHP
<?php
|
|
namespace addon\hyctransfer\api\controller;
|
|
use addon\hyctransfer\model\ExternalApi;
|
|
use app\api\controller\BaseApi;
|
|
class Account extends BaseApi
|
|
{
|
|
public function info()
|
|
{
|
|
$token = $this->checkToken();
|
|
if ($token['code'] < 0) return $this->response($token);
|
|
$member_id = $this->member_id;
|
|
$id = input('id');
|
|
$hycmemberId = input('hycmemberId');
|
|
$trans_seq_id = input('transSeqId');
|
|
$contractId = input('contractId');
|
|
$status = input('status');
|
|
if ($hycmemberId && $trans_seq_id) {
|
|
$ExternalApi = new ExternalApi($this->site_id, $member_id);
|
|
if (!$contractId) {
|
|
$res = $ExternalApi->personalContractCreate($id, $hycmemberId);
|
|
} else {
|
|
$res = $ExternalApi->personalContractQuery($contractId);
|
|
}
|
|
return $this->response($res);
|
|
}
|
|
return $this->response(error(-1, '参数错误'));
|
|
}
|
|
}
|