|
|
@ -200,7 +200,7 @@ class PartnerController extends ThinkController
|
|
|
|
public function add()
|
|
|
|
public function add()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($_POST) {
|
|
|
|
if ($_POST) {
|
|
|
|
$partner = I('post.partner', '');
|
|
|
|
$partner = trim(I('post.partner', ''));
|
|
|
|
$status = intval(I('post.status', 1));
|
|
|
|
$status = intval(I('post.status', 1));
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($partner)) {
|
|
|
|
if (empty($partner)) {
|
|
|
@ -291,7 +291,7 @@ class PartnerController extends ThinkController
|
|
|
|
$model = M($this->modelName, 'tab_');
|
|
|
|
$model = M($this->modelName, 'tab_');
|
|
|
|
|
|
|
|
|
|
|
|
if ($_POST) {
|
|
|
|
if ($_POST) {
|
|
|
|
$partner = I('post.partner', '');
|
|
|
|
$partner = trim(I('post.partner', ''));
|
|
|
|
$status = intval(I('post.status', 1));
|
|
|
|
$status = intval(I('post.status', 1));
|
|
|
|
$id = intval(I('post.id', 0));
|
|
|
|
$id = intval(I('post.id', 0));
|
|
|
|
|
|
|
|
|
|
|
|