|
@@ -111,9 +111,9 @@ class SupplierExamine extends BaseModel
|
|
|
* @param unknown $apply_id
|
|
|
* @param unknown $reason
|
|
|
*/
|
|
|
- public function applyReject($apply_id)
|
|
|
+ public function applyReject($apply_id,$reason)
|
|
|
{
|
|
|
- $res = model('supplier_examine')->update([ 'status' => 2, 'examine_time' => time()], [ [ 'id', '=', $apply_id ] ]);
|
|
|
+ $res = model('supplier_examine')->update([ 'status' => 2,'reason'=>$reason, 'examine_time' => time()], [ [ 'id', '=', $apply_id ] ]);
|
|
|
Cache::tag("supplier_examine")->clear();
|
|
|
return $this->success($res);
|
|
|
}
|