update:商户合同详情
This commit is contained in:
parent
8d78ef853e
commit
fe31a235a7
@ -21,6 +21,7 @@ use app\adminapi\lists\ShopContractLists;
|
|||||||
use app\adminapi\logic\ShopContractLogic;
|
use app\adminapi\logic\ShopContractLogic;
|
||||||
use app\adminapi\validate\ShopContractValidate;
|
use app\adminapi\validate\ShopContractValidate;
|
||||||
use app\api\logic\SmsLogic;
|
use app\api\logic\SmsLogic;
|
||||||
|
use app\common\logic\contract\ContractLogic;
|
||||||
use app\common\model\ShopContract;
|
use app\common\model\ShopContract;
|
||||||
use app\common\model\ShopMerchant;
|
use app\common\model\ShopMerchant;
|
||||||
use app\Request;
|
use app\Request;
|
||||||
@ -108,9 +109,10 @@ class ShopContractController extends BaseAdminController
|
|||||||
return $this->data($result);
|
return $this->data($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 上传合同
|
||||||
public function wind_control()
|
public function wind_control()
|
||||||
{
|
{
|
||||||
$params = Request::param();
|
$params = $this->request->param();
|
||||||
$file = $params['file'];
|
$file = $params['file'];
|
||||||
$res = ShopContract::where('id', $params['id'])->update(['file' => $file, 'check_status' => 2]);
|
$res = ShopContract::where('id', $params['id'])->update(['file' => $file, 'check_status' => 2]);
|
||||||
if ($res) {
|
if ($res) {
|
||||||
@ -141,5 +143,14 @@ class ShopContractController extends BaseAdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 发送合同
|
||||||
|
public function Draftingcontracts()
|
||||||
|
{
|
||||||
|
$params = $this->request->param();
|
||||||
|
$result = ShopContractLogic::Draftingcontracts($params);
|
||||||
|
if ($result == true) {
|
||||||
|
return $this->success('生成合同成功', [], 1, 1);
|
||||||
|
}
|
||||||
|
return $this->fail(ContractLogic::getError());
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user