Skip to content

Commit

Permalink
fix TplOperator::add rm tpl_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dzh committed Nov 18, 2016
1 parent c8359eb commit c35a08e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/.DS_Store
Binary file removed lib/.DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions lib/TplOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public function get($data = array())

public function add($data = array())
{
if (!array_key_exists('tpl_id',$data))
return new Result(null,$data,null,$error = 'tpl_id 为空');
if (!array_key_exists('tpl_content',$data))
return new Result(null,$data,null,$error = 'tpl_content 为空');
$data['apikey'] = $this->apikey;
Expand Down

0 comments on commit c35a08e

Please sign in to comment.