add:商户合同发起签约
This commit is contained in:
parent
2dbac8253e
commit
5205beca8b
@ -27,10 +27,21 @@ class HetongController extends BaseApiController
|
|||||||
{
|
{
|
||||||
$id = Request()->get('id');
|
$id = Request()->get('id');
|
||||||
$type = Request()->get('type');
|
$type = Request()->get('type');
|
||||||
|
$params = Request()->param();
|
||||||
$msg='合同不存在';
|
$msg='合同不存在';
|
||||||
if(empty($type)){
|
if(empty($type)){
|
||||||
$msg='参数错误';
|
$msg='参数错误';
|
||||||
}
|
}
|
||||||
|
if (isset($params['t']) && $params['t'] == 1) {
|
||||||
|
$find = Db::name('shop_contract')->where('id', $id)->find();
|
||||||
|
dd($find);
|
||||||
|
if ($find && $find['url']) {
|
||||||
|
$url = json_decode($find['url'], true);
|
||||||
|
if(isset($url[$type])){
|
||||||
|
return redirect($url[$type]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($id && $type) {
|
if ($id && $type) {
|
||||||
$find = Db::name('contract')->where('id', $id)->find();
|
$find = Db::name('contract')->where('id', $id)->find();
|
||||||
if ($find && $find['url']) {
|
if ($find && $find['url']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user