Fix two notices and a strict error in class Product

Signed-off-by: Takashiro <takashiro@qq.com>