在执行thinkphp的过程中,偶尔会报出如下错误:
    trim() expects parameter 1 to be string, null given

    这个时候首先要考虑,所查数据库字段的问题,看看相关字段是否为空。